General information
Category:
Forms & Form designer
Jang
I was putting together something that day and did exactly that. so it was at the top of my personal stack.
Glad to help
Nick Mason
>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
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only