Hi!
Use following:
Try to FOPEN("DOCFILE.DOC",12)
if failed
sleep(100)
repeat
else
finished
endif
sleep is API function:
DECLARE integer Sleep in Win32API integer
>In my app, I create an object reference to Word, insert some text and data and then make Word visible for the user to complete final editing and formating.
>
>I want to do 2 things here.
>
>1. I don't want the user to be able to return to my app until they finish and close Word.
>
>2. I need to know how to detect when Word is closed. I've discovered that the object reference remains even after closing Word.
>
>Any help appreciated. TIA.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.