Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacing multiply characters within a dbf field
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00446552
Message ID:
00446554
Views:
12
chrtran(myfield,"/\,*#"," ")

Then use strtran() to cut the double spaces. For more information, check out the help on these.

HTH.

>I would like to replace characters such as / \ , * # etc with a specific field. I would be replace these characters with a single space. The ideal would be to run such a function so that it scans the field entirely and does the replacements. Then I would need to apply a replace function that would get rid of any double spaces that are in the field.
>
>Thanks
>
>Peter
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform