Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shellexecute error
Message
From
12/11/2006 12:00:10
Denis Filer
University of Oxford
United Kingdom
 
 
To
11/11/2006 13:24:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01168931
Message ID:
01169013
Views:
10
Hi

Turns out that a simple
cFiletoopenx = strtran(filetoopenx,CHR(13),"")
does the trick. Works a treat now.
Thanks to both of you for your help.




>I'm trying to open a PDF using _shellExecute which is added to my own form class. Normal this works 100% OK (will all file types). But in passing a file name gathered from selected text from a memo field which itself is opened in a child form, I'm getting a retval value 2 (= 'bad association' error code). Any clues! Many thanks.

Denis,

Can you pass
rtrim(MemoField)
to the _shellExecute ?
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform