Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executable does not function with VFP 6
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00709697
Message ID:
00709934
Views:
16
Hi Jim,

I just built this small application for a test.

* TIME.PRG
*-------------------------------------------
ON SHUTDOWN CLEAR EVENTS
clear windows all
SET CURSOR ON
DO FORM TIME
READ EVENTS
ON SHUTDOWN

Again, it works just fine as an .APP but not as an .EXE

There is also a CLEAR EVENTS into the Quit button of the form.
It act just like the READ EVENTS is not there. I can see the form appearing a fraction of a second and disapear.

Does it has something to do with the compilation process - Win32 executable/COM server (exe) - or can it be a bug or shoud I have to change something in the form???

Réal

========================================================
>>I have a very small application in VFP 6 SP4 that works fine as an .APP but just flashes (does not stop - just goes throught) as an executable .EXE
>>
>>How come?
>
>The "typical" stratup for a VFP app usually goes something like this:
>
>SET TALK OFF
>[... more SETs here]
>
>DO MENU.MPR
>
>READ EVENTS
>*(Read Events will process all of the events that occur in VFP like Click, Valid, etc) Use a CLEAR EVENTS to tell the READ EVENTS to stop processing events and continue to the next line of code after the READ EVENTS. Typically your CLEAR EVENTS will go behind the File|Exit menu option or in the ExitApp method of an application object.
>
>* Maybe log the app shutting down or something here.
>
>
>
>Hope this helps!
Réal Philippon
www.ultra.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform