Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
At and RAT
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00885613
Message ID:
00885623
Views:
12
>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.

Use ADDBS(). If there's already a trailing backslash it does nothing. If there isn't it adds one. If, however, you're using VFP 5.0, you can still use this command by using SET LIBRARY TO FOXTOOLS.FLL.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform