Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Similar to ALLTRIM()?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00957249
Message ID:
00957256
Views:
39
The minus is a concatenation operator for 2 strings, but, it is different of the plus operator because it removes all trailing blank spaces from the first operand and put them back at the end of the result, thus the lenght of the result is the same as the sum of the to operands, I better leave english explanations and put code examples :)
cText1 = 'Text1' + space(5)
cText2 = 'Text2'

cText1 + cText2 -> 'Text1     Text2' 
cText1 + cText2 -> 'Text1Text2     '
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform