Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i print an array of string

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0

how do i print an array of strings in a formula?
cant i do something like
for intx=1 to ubound(array)
print array[x]

or do i need a different formula for each element (array[index) of the array?

thanks.
 
CR v8 and newer has an easy way to deal with this:

Join(StringArray,", ") Software Training and Support for Macola, Crystal Reports and Goldmine
714-348-0964
dgilsdorf@mchsi.com
 

i cannot use the join function because the resulting string will be more than 250 chars long.
thats why i have an array of strings.

but do i have to print each index with a separate formula or can i do this in a loop in 1 formula?

thanks.
 
If the toal length of the string to print after pulling from the array exceeds 254, you'll need to break the array into 254 or less parts. In that case, you might use a loop in multiple formulas, passing the current array index between them (global numbervar) to allow for the proper strings being produced in each.

Then you can place all of the formulas into a text object and display them as one.

If you bump into this problem, post it and one of us will flesh it out for you.

-k kai@informeddatadecisions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top