Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Common Dialog: ShowOpen() errors out
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00971064
Message ID:
00971149
Views:
64
>>You need to add:
>>
>>oleCommDlog.MaxFileSize=40 && or similar value

>
>
>Funny you mentioned it. <g>
>I had tested with picking 5 or 6 files. A few minutes before seeing youir message they called me. It crashed with not enough size. I then saw the maxFileSize property defaults to 260. They had selected a whole directory andthe filenames are quite long.
>
>I increased the max a lot and it seems to be working now. Will add a try..catch to avoid the OLE error crash.
>
>Thanks for the info.

AFAIK, the default for MaxFileSize is 0; therefore it must be set programmatically anyway.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform