Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
O = CreateObject(
Message
From
03/06/2003 16:04:46
Mike Sue-Ping
Cambridge, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00795872
Message ID:
00795884
Views:
10
Hi Yuir,

>How did you "tried setting the DefaultExt"?

I used o.DefaultExt="txt".

>
>Will this work for you?
>
>o = CreateObject("MSComDlg.CommonDialog")
>o.Filter = "All Files (*.*)|*.*|Text Files(*.txt)|*.txt|Batch Files (*.bat)|*.bat"
>o.FilterIndex = 2
>o.MaxFileSize=40 && you must set this in your code anyway
>o.ShowOpen

This works great. Why did the method I tried produce the error?

Regards,

Mike
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform