Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening a specific file with GETFILE()
Message
From
11/10/2001 17:57:48
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00567270
Message ID:
00567278
Views:
14
>Is there a means to open and view a specific file from a form without knowing the file's format?
>
>I have been asked to add an ability to view attachment files, but have no way of knowing in advance of knowing whether the file will be .txt, .doc, .xls, or what.
>
>I was hoping to use GETFILE(), but either it isn't up to the job, or I'm not using it correctly.
>
>Help, please?

Can you use ShellExecute() in Windows API and 'run' the filename with the extension? Let Windows figure out which app is associated with the file extension.
Previous
Reply
Map
View

Click here to load this message in the networking platform