Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing repetitive spaces from strings
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Removing repetitive spaces from strings
Miscellaneous
Thread ID:
00032009
Message ID:
00032009
Views:
68
Does the FoxTool function Reduce (or a similar function) exist in the Windows API? I need to remove repetitive spaces from a string. Below is the functions specifications from the FoxTools:

REDUCE(, )
Returns: Character
Description: Removes repetitive values in a string. Usually used to remove
groups of spaces in a string and replace it with one space.
- Character string to change
- Characters to search for
Example: ? REDUCE("This is lots of spaces", " ")
(returns: This is lots of spaces)
? REDUCE("Repeat characters AAAA and delete", "A")
(returns: Repe t ch r cters nd delete)

Thanks!
Next
Reply
Map
View

Click here to load this message in the networking platform