General information
Category:
Forms & Form designer
Title:
Problem with GETFILE() in form
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?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only