Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Displaying values from Split function. Post Reply Post New Topic
Author Message
DiSi
Newbie
Newbie
Avatar

Joined: 25 Jun 2011
Online Status: Offline
Posts: 4
Quote DiSi Replybullet Topic: Displaying values from Split function.
    Posted: 17 Oct 2011 at 1:12am
I have a field which stores 1 or 2 ID values.
 
I am trying to separate out the two by using Split function but I am not able to print the 2 values.
 
after separating the Two Ids, I need to fetch data from another database using these 2 Ids.
 
my code is :

 If Count (Split ({Command.id},',' )) = 1 then Right({Command.id}, 11)
else

Right((Split ({Command.id},',' )[1]),11);
Right((Split ({Command.id},',' )[-1]),11);
 
it only print the last value. I want to print both. How do I do it?
 
I am using Right function to remove some char at the beginning of each ID.
 
Thanks in advance!
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.