Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do form to
Message
De
02/03/2009 11:22:32
 
 
À
02/03/2009 11:15:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01384697
Message ID:
01384999
Vues:
41
Is "mylogon" a modal form?

>Hi Naomi,
>
>It works when run from VFP, but when compiled to exe it doesn't run. It displays not logged in and quits..
>
>TIA
>
>>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
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform