Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Common Dialog Open File Initial Directory
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
01481542
Message ID:
01481567
Vues:
36
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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform