>>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?