Array - Crystal
Array - Crystal
An Array is an ordered, integer-indexed collection of objects of type T.
Array indexing starts at 0. A negative index is assumed to be relative to the end of the array: -1 indicates the last element, -2 is the next to last element, and so on.
An Array can be created using the usual new method (several are provided), or with an array literal:
An Array can have mixed types, meaning T will be a union of types, but these are determined
when the array is created, either by specifying T or by using an array literal. In the latter
case, T will be set to the union of the array literal elements' types.
When creating an empty array you must always specify T:
An Array is implemented using an internal buffer of some capacity
and is reallocated when elements are pushed to it when more capacity
is needed. This is normally known as a dynamic array.
You can use a special array literal syntax with other types too, as long as they define an argless
new method and a << method. Set is one such type:
The above is the same as this:
How to use array function? - SAP Community
Hello Kent,
You can't just assign all field values to an array, the formula needs to process each record in the details section and assign the record to the array. Here is a sample formula that would assign all countries to an array;
Additional reading:Mechanical Piping Connectors Explored - Unified Alloys
You will get efficient and thoughtful service from EBO.
WhilePrintingRecords;
stringvar array t;
numbervar x;
x:= x + 1;
redim preserve t[x];
t[x]:= {Customer.Country};
t[x]
If you need the completed array available in the main report before the Report Footer then you would need to use a subreport in the Report Header to generate the array and then using a shared variable pass it back to the main report.
Also note that an array is limited to elements so if there is a possibility of the number of records exceeding you will need to create more than 1 array and depending on the value of the counter assign the records greater than to the second array
For more Crystal Arrayinformation, please contact us. We will provide professional answers.



