Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing extra spaces in MIDDLE of str.
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00535205
Message ID:
00535477
Views:
14
>how about this
>
>thistemp = 'Iain           Brodie'
>? subs(thistemp, 1, at(' ', thistemp)-1)+' '+subs(thistemp, rat(' ',thistemp)+1)
>
Hi Iain,

Just check reduce function from FoxTools (which, of course, needs to be loaded first). So, it's a one line of code: lcString=reduce(m.lcString) :)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform