Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PUTFILE() and extensions
Message
From
20/05/2018 17:04:45
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01660196
Message ID:
01660201
Views:
52
>>>Hi,
>>>
>>>In the PUTFILE() dialog I want the user to see both XLS and XLSX files. The only way I could do it if I pass the following in the Extention parameter: "XLS*" (using asterisk wild card).
>>>
>>>But I read in VFP help that I should be able to specify two extensions as "XLS, XLSX" or "XLS| XLSX" or "XLS; XLSX" but none of these methods work.
>>>
>>>What am I missing?
>>
>>It looks like either a bug or misleading text in Help. Anyway, this works:
>>
>>
?Putfile('some text','','xls*')
>
>This is what I said works (see above). But how come when putting the extensions one after the other it does not work? This is what I am trying to figure out.

Sorry, I overlooked the first part of your message. However, I also gave you my answer to your question. You may send a complaint to Microsoft. <grin>

Update: The syntax Putfile('Some messae','','XLS;XLSX') works. And I am tempted to say that it works the way Microsoft finds natural, but not you and me. It will fill the "Save as type" dropdown with three options: Allt ypes, XLS and XLSX. So you can't use it to see both XLS and XLSX at the same time.
Previous
Reply
Map
View

Click here to load this message in the networking platform