Hi Kengwen,
If your form's Name property is the same as the actual SCX name, the following code will work when used in an App objct or in the menu procedure....
Here's the code:
LPARAMETERS cFrmName,vFormParms
IF WEXIST(cFrmName)
ZOOM WINDOW (cFrmName) NORM
ELSE
IF PARAMETERS()=2
DO FORM (cFrmName) WITH vFormParms
ELSE
DO FORM (cFrmName)
ENDIF
ENDIF
RETURN
> I am develop an application and that will have menu, and by menu to click for open a form. And i wish to avoid user will click many times to open the form many times. How to prevent it ?
> Thanks
>
>
>kengwen
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05