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
Titre:
Common Dialog Open File Initial Directory
Divers
Thread ID:
01481542
Message ID:
01481542
Vues:
197
I'm trying to use the activex common dialog Open File dialog. Specifically I'd like to set the initial directory, but it doesn't seem to work:
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?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform