Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do form to
Message
 
 
À
27/02/2009 17:26:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01384697
Message ID:
01384785
Vues:
40
Try to declare result variable in your main program, e.g.

local Result
Result = 'N'

do myForm to Result

>Hello All
>
>This is very simple, but yet not working
>
>I have this in my main program
>SET TALK OFF
>DO FORM frmsplash
>DO FORM mylogon TO result
>IF result="Y"
>	DO FORM mainform
>	READ events
>ELSE
>	WAIT WINDOW "not logged in"
>	QUIT
>ENDIF
>
>sample code in mylogon form
>
>mylogon form had username and password
>if sucessfull login
>thisform.aa="Y"
>else
>thisform.aa="N"
>
>mylogon form is modal and in unload event
>return thisform.aa
>
>This works fine within VFP 9 but when compiled into a exe I get a message Variable Result in not Found.
>
>Thanks for any input
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform