Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacing spaces in a field
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00687756
Message ID:
00687757
Views:
12
Try STRTRAN(field," ","-")

>Is there anyway to replace spaces in a table field? I have a table where I need to replace all spaces in that field with a hyphen. I have tried :
>replace substr(field,2,1) with '-';
>for substr(field,2,1) = ' '
>
>This gives me an unrecoginzed phrase error. Is there a better way to do this? Please help!!! Thanks.
- Jayesh
Previous
Reply
Map
View

Click here to load this message in the networking platform