krhag28
asked on
Locfile() on top - Foxpro?
I have a PRG which runs a top-level form. In the PRG I want to use locfile() to create a reference to a file which will be used in the form. How can I force the locfile() dialog to come up on top?
The application is a COM server (EXE), which is run from a C++ application. When I run it the locfile comes up hidden behind the Calling EXE.
The application is a COM server (EXE), which is run from a C++ application. When I run it the locfile comes up hidden behind the Calling EXE.
ASKER
GETFILE() has no default folder, but LOCFILE() has, so that's why I prefer LOCFILE(). However the problem with not being on top is the same.
Interesting,
a) CD into the desired default folder and GETFILE starts there.
b) GETFILE uses the system open file dialog, which should appear on top always.
You might set the alwaysontop=.f. when your form is started and right before you start LOCFILE or GETFILE.
Bye, Olaf.
a) CD into the desired default folder and GETFILE starts there.
b) GETFILE uses the system open file dialog, which should appear on top always.
You might set the alwaysontop=.f. when your form is started and right before you start LOCFILE or GETFILE.
Bye, Olaf.
ASKER
a) I prefer not to change the default folder, but of course it is possible...
b) Unfortunately it does not appear on top
No form is started - I run the file open dialog from the main PRG.
My conclusion is that I need to involve a form to force it on top.
b) Unfortunately it does not appear on top
No form is started - I run the file open dialog from the main PRG.
My conclusion is that I need to involve a form to force it on top.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The solution is correct, but does not solve my problem. I had to move the opendialog from the prg to a form, then it works.
Bye, Olaf.