Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do form to
Message
From
02/03/2009 11:22:32
 
 
To
02/03/2009 11:15:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01384697
Message ID:
01384999
Views:
43
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform