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:
00710176
Views:
17
>>>Hi Ed,
>>>
>>>How can you be everywhere at the same time? ;-)
>>>Always there to help... appreciated.
>>>
>>>Your comments forced me to review all the parameters and indeed the property of the form had to be Window Type = 1 (Modal)
>>>
>>>It now works fine in both .APP and .EXE
>>>
>>>But I have this VFP window behind when running the .EXE. How can I get rid of that?
>>>
>>
>>In order to remain Modal, the Form needs to run in the context of the VFP screen; to fix this, make your form's ShowWindow property = 2, and then use SCREEN=OFF in the CONFIG.FPW to toally hide the VFP main screen (the APP or EXE running in development mode can't do this, but you can add _SCREEN.Visible = .F. to the Init of your form. Top-Level forms are inherently modeless (IOW they cannot be modal); your startup .PRG should do something along the lines of:
>>
>>ON SHUTDOWN CLEAR READS
>
>error - this should read:
>
>
ON SHUTDOWN CLEAR EVENTS
>
>>DO FORM MyTopLevelForm
>>READ EVENTS
>>ON SHUTDOWN
>>CLOSE ALL
>>CLEAR ALL
>>QUIT
>>
>>and you can then have the Quit menu/command button of the Top-Level form issue:
>>
>>CLEAR EVENTS
>>thisform.Release()
========================================
Thanks for the correction - I will make some test tomorrow morning.
Is there a difference between thisform.Release() and RELEASE THISFORM ??
Réal Philippon
www.ultra.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform