Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid Path
Message
 
 
À
25/10/2001 21:26:53
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00573477
Message ID:
00573478
Vues:
24
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform