Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trim function to remove blanks + returns
Message
 
To
25/07/1996 08:33:21
Paul Wei
Fib, State of Michigan
Lansing, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00004308
Message ID:
00004525
Views:
25
>>>>You must be an ex- APL programmer.
>>>
>>>No.
>>
>>I was making a joke about the one line function :)
>>
>>>>What is the character 160 for. I have an emtpy test I use
>>>>for checking web form input (it follows). Should I add this
>>>>160 to it?
>>>
>>>I've found that this character is invisible and that someone put it at the end. So, I included it in my inlist to make sure it goes.
>>
>>Thanks. I'll check for it then.
>>
>>jb
>
>I'm glad Michel answered your original question because I've no idea why anyone would want to check for chr(160). I was only trying to duplicate Michel's code with an one-liner. But hey, we now know who to blame if years from now someone runs into codes which checks for carriage return, line-feed, AND CHR(160) and can't figure out why it's been done.
>
>Paul

Chr(160) is a "non-breaking space" -- similar to a non-breaking hyphen (it means "don't divide this phrase here" if you want to keep everything on the same line). Kind of an oddity, but I guess there might be a use for it somewhere, since they went to the trouble of inventing it.

Bruce
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform