Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Common Dialog Open File Initial Directory
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01481542
Message ID:
01481567
Views:
37
Naomi and Sergey are correct. But here is a tip that you may find useful. I like to declare my variables with the type so that I can take advantage of Intellisense. For example:
LOCAL loComDialog AS "mscomdlg.commondialog"
When I type the period in "loComDialog.", I then get a drop down list of all the object's properties and methods.

>
>
>loComDialog = newobject("mscomdlg.commondialog")
>loComDialog.InitialDir = "c:\projects"
>loComDialog.Filter = "All Files (*.*)|*.*|Text Files(*.txt)|*.txt|Batch Files (*.bat)|*.bat"
>loComDialog.FilterIndex = 2
>loComDialog.MaxFileSize = 260 
>loComDialog.ShowOpen()
>lcFileName = loComDialog.FileName
>MESSAGEBOX(lcFileName)
>
>
>The folder c:\projects exists. Anyone know what's wrong?
Previous
Reply
Map
View

Click here to load this message in the networking platform