Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacing spaces in a field
Message
 
 
To
08/08/2002 18:14:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00687756
Message ID:
00687758
Views:
15
>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.

replace myfield with chrtran(trim(myfield), [ ], [-])
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform