>Hey all,
>
>I would like to achieve a multi-line command button caption by embedding carriage-returns, CHR(13), in the expression assigned to the .Caption property. I want to this to happen explicitly where I tell it to do a "line-break" and not rely on the WordWrap feature of the command button. First, is this even possible? Second, if it is possible, what is the proper syntax for assigning this type of expression to the .Caption property. Third, if it is not possible, is there some other method, tip or trick for achieving the same result? Thanks in advance for any help.
Yes, it's possible. You still have to set WardWrap to .T.
=("Line 1" + CHR(13)+CHR(10) + "Line 2" + CHR(13)+CHR(10) + "Line 3")
Thisform.command1.Caption = "Line 1" + CHR(13)+CHR(10) + "Line 2" + CHR(13)+CHR(10) + "Line 3"
There's a catch thou. The lenght of the Caption string has to be long enough to trigger word wrapping otherwise CHR(13) and CHR(10) will show up as squares in the caption text. You can use CHR(13) only but I prefer always use CHR(13)+CHR(10) combination as a standart new line codes.
--sb--