I'm not going to complain. This is a Good Thing!

I have recently discovered that ltrim$ (and presumably also rtrim$) trims
off not only spaces, but other whitespace characters, sub as newlines.

thus, note A+ltrim$(chr$(13)+"B")

will give you

AB

while note "A+chr$(13)+"B"

will give you

A
B

This is particularly useful in making label expressions when you have two
fields,
either of which may or may not be blank.   If your expression is

ltrim$(rtrim$(column1+chr$(13)+column2))

you will get an empty string if both fields are blank, a single line if one
field is blank,
and two lines if neither field is blank.  Neat, huh?

Spencer




_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to