Hello,
I have a formula field which contains an If-Else Statement. For example:
IF {} = 1 THEN
"CO" ....I would like to place a carriage return
here, In VB it would be _ Does this exist in
Crystal 8.5?
& {}
Your post is not too clear. If you want to have more than one statement executed for the 'TRUE' part of the condition then use:
if <condition> then
(
Statement1;
Statement2;
Statement3 )
else
StatementA;
Notice how you need to use brackets to surrounds more than one statement. If you left the brackets off, only the first statement gets executed as part of the IF condition.
If you want to include a <CR> in the outputted text of the formula then use:
If <condition> then
"Some Text" + chr(13)
else
"Some other text";
Lastly, if you just want to continue a line onto another line, you can use the underscore character as follows:
Text1 := "This is quite " & _
"a long line";
Hope one of these answers your question
Steve Phillips, Crystal Consultant
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.