Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
At and RAT
Message
De
12/03/2004 10:58:05
 
 
À
12/03/2004 10:42:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00885613
Message ID:
00885622
Vues:
10
>I want to check wether there is back slash at the end of the path or not,
>
>If there is no back slash i want to add, if there is, then leave it.
>
>this is the path:
>
>"C:\scanproj\temp\"
>this path will be coming from table.
>
>So i am not hardcoding it, sometimes it has back slash and sometimes no back slash.
>
>Please let me know how can i do this.

Since VFP 6 ADDBS function will work for you. Before that it's in foxtools.fll. But you could also check to see
  IF RIGHT(lc_path, 1) <> "\"
     lc_path = lc_path + "\" 
  ENDIF
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform