Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing PDF file quuestion
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01050483
Message ID:
01050484
Views:
7
This message has been marked as a message which has helped to the initial question of the thread.
<snip>
>Also, just as a test, I specified non-existing .pdf file. But ShellExecute() didn't create a run-time error. Is it by design? How can I trap if user does not specify a valid location/name of a PDF file?

Why would it generate run-time error if it returns code indicating failure or success? The return code < 32 indicates error. In addition you can use FILE() or ADIR() functions to check for file existence even before launching the ShellExecute().
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform