Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Paramter Fields Displaying Post Reply Post New Topic
Author Message
wan2fly99
Newbie
Newbie


Joined: 06 May 2010
Online Status: Offline
Posts: 15
Quote wan2fly99 Replybullet Topic: Paramter Fields Displaying
    Posted: 13 Jul 2011 at 1:36am
I have a parameter field that allows multiple selections for it.
I can put the parameter on the report and see the first value.

 How can I display all the values selects for that parameter?

Thanks for any help
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 13 Jul 2011 at 3:52am
you need to cycle through the array that holds the values.
 
if you are displaying them, you will probably want a stringvar and to loop (CR help for syntax)....probably a FOR loop where the upper limit is found by UPPER({?parameter})-1 (the array starts at index [0] I am pretty sure...again CR help can guide you)
 
Obviously in your loop you will want to concatenate the values together.
 
if you just need to see if a value has been selected, then you will be using the 'IN' command....again CR help, look at arrays or IN, either should give you examples of how to proceed.
 
HTH
IP IP Logged
wan2fly99
Newbie
Newbie


Joined: 06 May 2010
Online Status: Offline
Posts: 15
Quote wan2fly99 Replybullet Posted: 13 Jul 2011 at 3:56am
Thanks  I found out I can do this  if field is alpha

Join ( {?YourCharPrompt} ,  ', ' )
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 13 Jul 2011 at 4:15am
silly me...I forgot about JOIN, I use split all the time, but JOIN....
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.031 seconds.