Hi!
As far as I know, OpenFile() function with 0 as last parameter allow to open even file that opened elsewhere in VFP in exclusive mode (at least works for DBF files).
However, I'm wondered, because wontop() is not a file name, but just a name of the window. When you use filetostr(wontop()), this will try to read from a disk file with a name that matches to the topmost window name. Make no sense for me...
>Is the data in an open file available to a system variable or API call? For example, you cannot do a filetostr(wontop()) cause of a file acess denied. How does the Print function from File/Print work on an open file? Thanks
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.