Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help Button on GetFile form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00680561
Message ID:
00680719
Views:
19
>>>>>The standard getfile dialog is very handy and I use it a lot, but new users always complain about the Help botton not working. Can I remove this or at least make it work?
>>>>>
>>>>There's no help button on GETFILE() dialog under VFP7.
>>>Thanks I am using VFP 6.
>>>
>>>Do you know how to use the Common Dialog Boxes in Foxpro? If so could you give me a sample of how you would do a "GetFile" using a Common Dialog Box.
>>>
>>Please disregard my previous statement. The help button still shows under VFP7.
>>
>>For Common dialog sample code see Re: Select multiple files in GETFILE() Thread #668580 Message #668679
>
>Sergey... you're a machine. I was working with Robert to solve this problem. The actual line of code that solved the problem we were having was the MaxFileSize. According to Help, it should default to 256. In my dev environment (W2K, Fox7) it defaults to 0, and was causing an Out of Memory error. Strange... anyway. Looks like the minimum I can get away with (without error handling, and or bells and whistles) is:
>
>loDialog = createobject('MSComDlg.CommonDialog')
>loDialog.MaxFileSize = 256
>loDialog.ShowOpen()
>lcFileName = loDialog.FileName
>release loDialog
>
>thanks again... I just got my account here today. Not sure how I ever survived without it :)

He is not a machine, but he has multiple personalities. All old UTers know this fact for sure :)
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform