Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RUN command
Message
 
To
15/05/1998 13:38:29
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00099389
Message ID:
00099802
Views:
24
>George,
>
>I have changed my code to pass by reference with the same results. vacancies_view is a view of 3 tables. The fp_name and fp_path contain the filename and path of the drawing I wish to pass through ShellExecute. The are defined in the table as character of 254 width. I have also checked to make sure these variables are returning the same thing my hard-coded statement has.
>
>lcfile = vacancies_view.fp_name
>lcpath = vacancies_view.fp_path
>lcop = 'open'
>lcparms = ""
>lnshow = 9
>
>DOESN'T WORK:
>lnresult = ShellExecute(0,@lcop,@lcfile,@lcparms,@lcpath,@lnshow)
>
>WORKS:
>lnresult = ShellExecute(0,'open',"wmar-100.dwg","","s:\drafting\acts\98202", 9)
>
>Thanks.

Tom,

You may be confusing my two messages. The first related why I thought that ShellExecute failed. The second was just an in general warning.

The problem is that the view file's extension isn't related to FoxPro in the registry. If you open up the Windows Explorer, you'll probably not see the Fox head icon next to it, but rather a general Windows icon. Within VFP, all you need to do is SET VIEW TO...

BTW, what's the value of lnresult?
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform