Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with GETFILE() in form
Message
From
04/10/2001 10:33:23
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00564159
Message ID:
00564162
Views:
28
This message has been marked as the solution to the initial question of the thread.
Possibly you have an embedded space in pc_curdir. In this case, I think the solution is to replace:
CD &pc_curdir
with:
CD (pc_curdir)
HTH, Hilmar.

>I recently added a command button to a form that allows the user to attach a file when sending an email message from the form.
>
>The button works perfectly when the project runs from Fox, but users are receiving an error of "invalid path or filename" when they use the executable. The attachment still goes with the email, but they get the error message all the same.
>
>I can't see an obvious problem with the code.
>
> pc_curdir = FULLPATH("")
> CD c:\ && Start file search in root directory
> pc_attach = GETFILE()
> CD &pc_curdir
> ThisForm.Refresh
>
>Any suggestions?
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform