Procedure DoForm Lparameters lcForm, tcParam1 Local lnParams, lcFormName lnParams = Pcount() lcFormName = "frm"+lcForm DO case Case Wexist(lcFormName) DO ActivateIt with lcFormName * This just activated a form if it already exists. Case lnParams = 1 DO form (lcForm) Case lnParams = 2 DO form (lcForm) with tcParam1 EndCase ReturnYou can then call this from your other program
do DoForm with FormNameAs long as the DoForm method and the form you are trying to display are compiled into the same exe then this should work.