Hello,
I am working on Crystal reports Xi.I am creating one formula using split function.I have to display the result in multiple rows.Example:
If address has Multiple Lines split it based on Space(any delimiter)then display in differrent rows for particular row.
Like that i have container Numbers concatenated with &.I have to display them in multiple rows one by one on record basis.
Here is my code:
whileprintingre cords;
Stringvar array ContCount:=spli t({XP_SeaContai ner;1.ContCount },"&");
If (count(ContCoun t) =2) Then
ContCount[1] + Chr(13)+Chr(10) +ContCount[2]
else If (count(ContCoun t) =3) Then
ContCount[1] + Chr(13)+Chr(10) +ContCount[2] + Chr(13)+Chr(10) +ContCount[3]
else
ContCount[1]
The above working fine as static.But i want this code as Dynamic..
I tried using for loop but failed..Please tell me how can i make this as dynamic..
I am working on Crystal reports Xi.I am creating one formula using split function.I have to display the result in multiple rows.Example:
If address has Multiple Lines split it based on Space(any delimiter)then display in differrent rows for particular row.
Like that i have container Numbers concatenated with &.I have to display them in multiple rows one by one on record basis.
Here is my code:
whileprintingre cords;
Stringvar array ContCount:=spli t({XP_SeaContai ner;1.ContCount },"&");
If (count(ContCoun t) =2) Then
ContCount[1] + Chr(13)+Chr(10) +ContCount[2]
else If (count(ContCoun t) =3) Then
ContCount[1] + Chr(13)+Chr(10) +ContCount[2] + Chr(13)+Chr(10) +ContCount[3]
else
ContCount[1]
The above working fine as static.But i want this code as Dynamic..
I tried using for loop but failed..Please tell me how can i make this as dynamic..