Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tool like GetFile
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00268602
Message ID:
00268713
Views:
28
>Hi George,
>
> Thanks again,
>
>>> 2) Can I use it without form with CreateObject() command. Could you please help me with exact syntax here?
>>>
>>Sure thing, and I work with it this. If a command button is used to activate it, it's stored as a custom property of the command button. In order create a reference to it, oOpenDlg = CREATEOBJECT("MSComDlg.CommonDialog.1"). The upside to it is that you don't have to worry about versioning problems (always a consideration with ActiveX controls). The downside is that you lose the access to the properties dialog.
>>
>>Let me know if you have any other questions.
>
> When I try
> oOpenDlg.Flags = cdlOFNHideReadOnly
> oOpenDlg.Flags = cdlOFNAllowMultiselect
> oOpenDlg.Flags = cdlOFNExplorer
> VFP can not found these variables. How can I define them if it's necessary or what do I have to do? And how can I combine flags?

The constants are defined in the help file, under the Flags property for the SowOpen/ShowSaveAs method. Note however that the syntax has to be changed slightly.

Change: cdlOFNAllowMultiselect &H200

to

#DEFINE cdlOFNAllowMultiselect 0x200

I'd suggest you create a header file and include it.



> And is there a way to change button's caption also (for inctance, archive instead of open)?

No, unfortunately there doesn't seem to be a property to control this.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform