Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RUN command
Message
From
17/05/1998 05:22:56
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
15/05/1998 10:48:31
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00099389
Message ID:
00099971
Views:
14
>Thanks George, you're suggestion seems to work great. However, when I use database fields for my path and filename it doesn't work - lnresult returns 2.
>
>WORKS:
>lnresult = ShellExecute(0,'open',"wmar-100.dwg","","s:\drafting\acts\98202", 9)
>
>DOESN'T WORK:
>lnresult = ShellExecute(0,'open',vacancies_view.fp_name,"",vacancies_view.fp_path, 9)
>
>Any suggestions?

Maybe this should work:

nresult = ShellExecute(0,'open',trim(vacancies_view.fp_name),"",trim(vacancies_view.fp_path), 9)

I've had things like this when I tried to use table fields as filenames - trailing blanks just ruin your day.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform