Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Basic READ EVENTS stuff
Message
From
22/06/2009 11:41:41
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01407483
Message ID:
01407580
Views:
83
Sergey:

Thanks for all the info.

I'm making painful progress. I now have CLEAR EVENTS in the 'Close' button:
Thisform.Release()
CLEAR EVENTS
and READ EVENTS in the controlling program:
DO FORM c:\posprgs\utils\skud.scx
READ events
BUT, the following code works in the IDE, but not in the EXE. It is in a button called 'List Dupes', which is supposed to display a text file created in another button.:
Thisform.ListDupes()
*Method ListDupes - doesn't seem to execute
LOCAL lcPath

lcPath = ADDBS(justpath(FULLPATH(thisform.FileName)))
MODIFY FILE (lcPath + 'SKUDUPES.TXT') NOEDIT 
It's the MODI FILE that is not execcuting - I put in some WAIT WINDOW commands.

One more problem: In the task manager I still see the EXE file exen after I close with thisform.release()

>See
>- http://www.alvechurchdata.co.uk/foxflash.htm
>- http://www.alvechurchdata.co.uk/hints-and-tips/fox101exe.html
>- http://www.alvechurchdata.co.uk/hints-and-tips/foxcannotquit.html
>
>>
>>I guess I need some basic tutoring on form design:
>>
>>I have a form that works well in interactive VFP. I have a PRG that executes it thus:
>>
>>
>>DO FORM c:\posprgs\utils\skud.scx
>>
>>
>>The problem occurs when I compile it into an executable EXE file from a project. When I double click on the EXE, it flickers momentarily and that's it.
>>
>>To solve the problem, I found that the following will work:
>>
>>
>>DO FORM c:\posprgs\utils\skud.scx
>>READ events
>>
>>
>>The problem now is that it brings up not only the form itself, but also the VFP window, which refuses to go away even after I press a button and execute the thisform.release() method.
>>
>>So:
>>
>>1) Why do I need a READ EVENTSonly in the EXE but not in interactive VFP?
>>2) What is the READ EVENTS really doing?
>>3) I don't need the VFP window. How can I stop it from displaying and then refusing to go away?
>>
>>Thanks,
>>
>>Yossi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform