A commonly asked question is, "How do I get my long lines to wrap to the next line?". One way, besides using the built in @crlf and @tab string constants is to use the functions Num2Char or StrCat to accomplish this. Example 1 - Using Constants:Message("", "This is line one %@crlf% This is line two")
or...
Message("", StrCat( "This is line one", @crlf, "This is line two")
Example 2 - Using Num2Char:cr=Num2Char(13) ; 13 is a carriage-return lf=Num2Char(10) ; 10 is a line feed Message("", "This is line one%cr%%lf%This is line two")
or...
cr=Num2Char(13) lf=Num2Char(10) crlf=StrCat(cr, lf) Message("", "This is line one %crlf% This is line two")
Note: @crlf and @tab are explained in more detail in the WIL Tutorial section under the heading Nicer Messages.
|
§ Notes |