Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DO FORM x TO variable
Message
 
À
02/12/2011 04:43:38
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:
01530155
Vues:
137
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform