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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing Numbervar Array

Status
Not open for further replies.

steventr

Programmer
Jan 28, 2003
7
US
Crystal 8.5 Question

I need to print an array one line for each element of the array. (actually it will be 6 different arrays, but I expect to be able to transfer)

I want to print only those rows where there is a value in ArrayOne. I don't want blank lines.
 
A simple means for printing an array with all elements on a separate line is to use:

join({MyArray}, char(13))

You've left a good deal to the imagination with your posting, such as what arrayone is, and does it somehow relate to these other arrays.

Hope this help to get yout there.

The alternative is to use a loop to display them.

-k
 
As SV has said...you have not given us much.

How big are these arrays ??? eg. are there 10 elements to the array .....one printed /line....20 elements...30...more?

Where there are a relatively small number I would first of all...define the array as a string array (even if it is a date or number...you would convert these to strings before assigning them to the array elements) and initialize the elements to null ("").

This way you can enable "suppress blannk sections" easily to eliminate unwanted rows.

Then in the footer...or whereever they are to be displayed you create subsections...one for each array element and they are displayed if there are any non-null values.

If there are several arrays to be displayed but you don't want the row displayed if a certain value of an array is null then just set the conditional suppress of that row to test that array for null.



Jim Broadbent
 
These arrays are maximum.

4 digit department code, so have Arr0..Arr9 based on thousands digit for each of 3 computiations - Regular Time, Extended Time and Over Time.

At any one time I expect to have about 400 departments active.

sorry for the missing information. thanks for your help.

steven
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top