/* Copyright (c) Oracle Corporation 1997.  All Rights Reserved */
/*****************************************************************************
  NAME
    shownmoh.vrf - Display non-moh products already installed in another home.

  DESCRIPTION
    This script displays the list of non-moh products, if it's not empty that
    have been installed in another home.  This list of products is defined
    and initialized in USER.AVF.  This script, i.e. show_nmp.vrf, is to be
    called in USER.PVF, which is the post verification of all products selected
    to be installed.

    USAGE:
        In USER.PVF call shownmoh.vrf:
                ...
                execute("shownmoh.vrf");
                ...

  CREATED
    Rod Fernandez, 13-NOV-97

  MODIFIED    DD-MMM-YY  Reason
  zzerhoun    08/24/99   Moved NLS strings to win32.
*****************************************************************************/
{
        /* If the list, non_moh_prod_list is empty, return to caller. */
        if(empty(non_moh_prod_list))
                return(0);
        /* Else display a message informing the user that the products in */
        /* non_moh_prod_list cannot be installed.                         */
        else
        {
                /* Implode list of products (non_moh_prod_list) to string. */
                non_moh_prods   = implode(non_moh_prod_list, "%carriage_return%");

                /* Display the dialog box. */
                information_dialog(instantiate(non_moh_msg), 
                                   instantiate(non_moh_content), 
                                   instantiate(non_moh_help));
        }
        return(0);
}
