Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Common Dialog: ShowOpen() errors out
Message
De
21/12/2004 14:37:46
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00971064
Message ID:
00971112
Vues:
84
It works when embedded in a form (container). Does not work when instantiating directly.
Thx.


>This code works fine for me:
>
>frmMyForm = CREATEOBJECT("Form")
>
>FrmMyForm.AddObject("oleObject1","oleComDialObject")
>  WITH FrmMyForm.OleObject1
>     .SetOptions()
>     .showopen()
>     ?.FileName
>  ENDWITH
>DEFINE CLASS oleComDialObject as OLEControl
>   OleClass ="MSComDlg.CommonDialog.1"
>   PROCEDURE SetOptions
>     #define COMMDLOG_DEFAULT_FLAG 0x00080000
>     #define COMMDLOG_RO 4
>     #define COMMDLOG_MULTFILES 512
>
>     This.Flags = COMMDLOG_DEFAULT_FLAG + COMMDLOG_RO + COMMDLOG_MULTFILES
>     This.FileName = "*.seq"
>     This.filter = "Stratus Log files|*.seq"
>   ENDPROC
>ENDDEFINE
>


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform