Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CrLf Line Feed in a multiline text variable in a report

680 views
Skip to first unread message

Andy

unread,
Jun 4, 2008, 9:21:01 AM6/4/08
to
Hello,

I want to concatenate two variable in the sourceExpression of a TextBox
variable multiline in a report.

var1 + ' ' + var2 prints on the same line

but I want something like:

var1 + crlf + var2 where crlf means a line feed/return to print on two lines


without creating 2 different text variables.

Is that possible? How?

Thank you

Andy

unread,
Jun 4, 2008, 9:37:01 AM6/4/08
to
Is it enough something simple like this?

var1 +'\' + var2

It seems to work correctly...Do you agree?

RedFox

unread,
Jun 5, 2008, 2:42:01 AM6/5/08
to
Dear Andy,

Can you use the STRSUBSTNO (String) fucntion + "\" in text line?
I have used it for this demand.

Andy

unread,
Jun 5, 2008, 2:47:00 AM6/5/08
to
Sorry but I have not understood. Could you please explain better?

Thank you much

RedFox

unread,
Jun 5, 2008, 4:07:02 AM6/5/08
to
Examples:
On new test form:
- new text Constant - Test000 = "Message %1 \ %2"
- make new button and in OnPush trigger write code:
"Message(STRSUBSTNO(Test000, 'Test 001', 'Test 002'));"

* It is same view for code: Message('Test 001'+ '\' + 'Test 002'). But in
first case you may use "multilanguage chars functionality".

weko

unread,
Jun 6, 2008, 11:02:01 AM6/6/08
to
no... use two text boxes

BobBrown

unread,
Jun 10, 2008, 9:07:02 AM6/10/08
to
Define a Text variable (in this case CRLF) with a length of 2 characters. The
following code will produce a carriage return/line feed combination:

CRLF[1] := 13;
CRLF[2] := 10;

If you want to produce one variable with the two segments do this:

NewText := STRSUBSTNO('%1%2%3',Var1,CRLF,Var2);

You can also use this as a source expression:

Var1 + CRLF + Var2

0 new messages