Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid Path
Message
 
 
To
25/10/2001 21:26:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00573477
Message ID:
00573478
Views:
25
This message has been marked as the solution to the initial question of the thread.
>I am Set a Default path based on user input. What is the best way to handel the rest of my code when a user puts in bogas info? How can I get On Error to skip the rest of my code(button click code).

You can use DIRECTORY() function to check if the path exists.
* Get User input
lcPath = .....

IF NOT DIRECTORY(lcPath) 
  Messagebox("Bad Path!", 16)
  RETURN
ENDIF

SET DEFA TO ( lcPath )
...

ENDPROC
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform