Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form flashed and disappered
Message
From
30/07/2002 13:02:05
 
 
To
29/07/2002 05:49:57
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00682995
Message ID:
00684031
Views:
26
Hi Nick,

Sorry for late reply. I was giving up on this thread after
2 days without getting a solution. I think it's damned
stupid of me to have made such a mistake which had caused me
two days to find out.
You guessed right ! On double-checking the item list in the
project window, I spotted that instead of "Main.prg", the
form had been mistakenly marked as the main process and thus
there were no read events at all in the exe file. After
marking "set as main" to Main.prg the exe file runs fine.

Thanks to everyone's help and suggestions. You all had
been helpful.


>>Hello,
>>My form runs fine when it is in the VFP system.
>>But when it is compiled into an exe file
>>and run in Windows, it flashes and disappeares.
>>Anybody knows why? Thanks for any help.
>>
>>
>>Below is my "main.prg" to call the form. The form's windowstate = modal
>>*---------------------
>>PROCEDURE Main
>>CLOSE ALL
>>CLEAR ALL
>>_screen.visible = .F.
>>DO FORM R_Form NAME main LINKED
>>READ EVENTS
>>CLOSE DATABASES
>>CANCEL
>>SET NOTIFY ON
>>RETURN
>>*---------------------------
>Jang
>
>just another thought here. You have set your main.prg as the main process when building the project?
>
>Nick Mason
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform