Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DO FORM x TO variable
Message
De
02/12/2011 05:49:00
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01530137
Message ID:
01530156
Vues:
57
Martina,

That was what I did just now! Thanks!
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
Dennis
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform