>Hi,
> I created two top-level forms, one which has a simple button, that in the
>click event has the code below, the other one(enc_psw_prompt) has a field
>to enter a password, and two buttons ok, and cancel.
>
> Very simple but, the second form enc_psw_prompt, doesn't stay, the code
>is just ignoring it, I couldn't find the reason of this behavior.
>
> Basically if the use of top-level forms.
>
> I will appreciate any info or solution.
>
>Thanks!
>
>* THIS CODE USES THE linked METHOD
>DO FORM ..\forms\enc_psw_prompt name fNewData linked && link scope of modal form to local variable
>READ EVENTS
>cListIDs = fNewData.uReturnValue
>RELEASE fNewData && releases both variable and form
>
>* THIS IS JUST TO LET YOU KNOW, THE PREVIOUS FORM
>* WAS LAUNCHED BUT THE READ DIDN'T STOP
>lcCurrDir = SYS(5)+SYS(2003)
>lcDirLoc = GETDIR(lcCurrDir, "Please locate Atlas installation")
>
>* THIS IS CALLING THE SAME FORM USING REGULAR CALL
>DO FORM enc_psw_prompt
>READ EVENTS
Juan,
Put :
this.show
read events
in 1st form.init.
Make the other modal (should set showwindow to InTopLevel).
Cetin