Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Common dialog
Message
From
24/10/2002 15:37:00
Mike Sue-Ping
Cambridge, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00715073
Message ID:
00715095
Views:
33
Thanks for the lead Sergey. I haven't tried it yet but I did try the following:

oDialog = CREATEOBJECT("MsComDlg.CommonDialog")
oDialog.flags = "&H80806"
oDialog.dialogtitle = "This is a test"
oDialog.showsave

The last line produced an error as follows:

"Error: 1429 OLE IDispatch exception code 0 from CommonDialog. The common dialog function failed during initialization. This error often occurs when insufficient memory is available...in line 0".

Do you have any idea what I did wrong?

Mike.



>See Re: GetColor Thread #700557 Message #700560, for example.
>
>>Hi All,
>>
>>I have in the past used the MSCommon Dialog control in my VFP forms and it works very well. Now I want to use it without placing it on a form. How do I apply the VFP command "CREATEOBJECT()" to make an open file dialog object?
>>
>>TIA
>>
>>Mike
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform