Hi Anatoliy,
...Windows NT 4.0/2000/XP: This flag is ineffective for GetOpenFileName.
MartinJ
>May be someone already have this solution mentioned:
>
OFN_NOCHANGEDIR
>Restores the current directory to its original value if the user changed the directory while searching for files.
>This value is assigned to the
Flags in OPENFILENAME structure to be used with the GetOpenFileName API function. Unfortunately, calling this function in VFP is not an easy task.
>
>FoxPro code sample (members area):
>
Creating the Open dialog box to specify the drive, directory, and name of a file to open>
http://www.news2news.com/vfp/?example=363&function=553>
>Similar function, GetFileNameFromBrowse has much better interface from VFP viewpoint. Though I could not find any flags applicable to a call that limit working directory.