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