Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DO FORM x TO variable
Message
 
To
02/12/2011 04:43:38
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01530137
Message ID:
01530155
Views:
126
This message has been marked as the solution to the initial question of the thread.
loPar=CREATEOBJECT("Empty")
ADDPROPERTY(loPar,"lLoginResult",.F.)
ADDPROPERTY(loPar,"Second",5)

**********************************
* from parts
**********************************

* form::Init()
LPARAM loPar
This.AddProperty("oPar",loPar)

* form.cmdOK::Click()
IF .T.
  Thisform.oPar.lLoginResult=.T.
ENDIF

* form::Destroy()
CLEAR EVENTS
************************************

DO FORM frmLogin WITH loPar    && frmLogin is As top level form
READ EVENTS

IF loPar.lLoginResult
    DO FORM frmMain
ELSE
    MESSAGEBOX( "Login Failed." )
ENDIF
MartinaJ

>Martina,
>
>The first rule, as top level from (in vfp) cannot be modal.
>
>If don't understand why you need modal form show as top level form.
>
>Can you explain it better?

>
>I plan to do something like this:
>
>_VFP.Visible = .F.
>
>DO FORM frmLogin TO lLoginResult    && this needs frmLogin to be modal and top level form
>
>IF lLoginResult
>    DO FORM frmMain
>ELSE
>    MESSAGEBOX( "Login Failed." )
>ENDIF
>
>
>If not possible, I will just do it another way.
>
>Thanks again
>Dennis
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform