By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,426 Members | 3,152 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,426 IT Pros & Developers. It's quick & easy.

Crystal Reports Xi:Result of split function Display in multiple rows

P: 1
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:

Stringvar array ContCount:=split({XP_SeaContainer;1.ContCount},"&" );
If (count(ContCount) =2) Then
ContCount[1] + Chr(13)+Chr(10)+ContCount[2]
else If (count(ContCount) =3) Then
ContCount[1] + Chr(13)+Chr(10)+ContCount[2] + Chr(13)+Chr(10)+ContCount[3]

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..
Apr 8 '11 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.