Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP 7.0 getdir() 2

Status
Not open for further replies.

bettyfurr

Technical User
Mar 12, 2002
371
US
How do you customized this feature? I would like to get rid of the fox and get the other parameters to work. I used the help but can not seem to get the syntext correct?

Please help

Betty :)
 
I want to know where the users moved there file. I need them to do a file location for the directory.

Thank you,

I will keep the info on the faq.

betty :)

 
bettyfurr

Apologies - I read GETDIR() to be GETFILE().

What you seem to be missing is the nFlags parameter which will change the appearance of the dialog as well as its functionality.

The use of nFlags will remove the Fox.

FAQ184-2483 - answering getting answered.​
Chris [pc2]
PDFcommandertm.com
PDFcommandertm.co.uk


 
Could you give me an example of the use of the getdir().

The help did not have an example and the way I am writing it, I am getting invalid parameters.

I am using 16 on the inflag.

Betty
 
BettyFurr

From the help file

GETDIR([cDirectory [, cText [, cCaption [, nFlags [, lRootOnly]]]]])

1 BIF_RETURNONLYFSDIRS

Return only file system directories (physical locations). If a user selects folders that are not part of the file system, the OK button is grayed.

2 BIF_DONTGOBELOWDOMAIN

Do not include network folders below the domain level in the tree view control (For example, My Computer and My Networks).

8 BIF_RETURNFSANCESTORS

Return only file system ancestors. If a user selects anything other than a file system ancestor, the OK button is grayed.

16 BIF_EDITBOX

The browse dialog includes an edit control in which the user can type the name of an item. Available on Windows 98 and above, or with Internet Explorer 4.0 or higher (assuming shell integration option selected). Requires version 4.71 of shell32.dll.

32 BIF_VALIDATE

Validates the editbox contents. If the editbox is used, it is necessary to validate the user-specified content. If the user types an invalid name into the edit box, the Cancel button becomes the only selection available. This flag is ignored if BIF_EDITBOX is not specified.

64 BIF_NEWDIALOGSTYLE

Use the new user-interface. Setting this flag provides the user with a larger, resizable dialog box. Additional functionality includes: drag and drop capability within the dialog box, reordering, context menus, new folders, delete, and other context menu commands. Support in Windows 2000 and above. Requires version 5.00 of shell32.dll.

16384 BIF_BROWSEINCLUDEFILES

The browse dialog will display files as well as folders. Available on Windows 98 and above, or with Internet Explorer 4.0 or higher (assuming shell integration option selected). Requires version 4.71 of shell32.dll.

Make sure you put empty parameters in the string if you don't have a value for them, ie

GETDIR([C:\*.*],[],[],16384)


FAQ184-2483 - answering getting answered.​
Chris [pc2]
PDFcommandertm.com
PDFcommandertm.co.uk


 
GETDIR([C:\*.*],[],[],16384)
That is what I was doing wrong. I left off the [].

A star for you!

Betty :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top