Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Basic READ EVENTS stuff
Message
From
22/06/2009 12:19:05
 
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:
01407601
Views:
57
>>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.
>>
>Try to specify a window with define window to view the file (MODI FILE ... in WINDOW).
>
>Alternatively you can call Notepad with ShellExecute to view the file, but then you would need to set file attribute read-only first.
>
>>One more problem: In the task manager I still see the EXE file exen after I close with thisform.release()
>>
>Make sure to add QUIT as the last line in your main program.

Why doesn't the MODI FILE work?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform