Paul Erlenmeyer
Paul Erlenmeyer

Reputation: 521

Is it possible to create lists or other mutable objects in Crystal Reports?

It would be very useful for my current task to have lists or sets in Crystal Reports. Unfortunately I haven't found anything in my documentation or online search. Anyone has an idea?

Upvotes: 0

Views: 73

Answers (2)

Lan
Lan

Reputation: 1346

You will need to handle mutable list in an external function. You can create UFL and expose functions like ListCreate, ListAdd, ListRead, ListDispose

If you don't want to deal with UFLs you can resize the array using redim preserve

redim preserve arrayname[new size];

Obviously this will copy the existing array into a new one and increase/decrease the size so there will be performance penalty. However, Crystal reports is slow anyway and I doubt copying a small array will be a significant performance issue.

Upvotes: 1

MilletSoftware
MilletSoftware

Reputation: 4001

A bit difficult to answer because the actual use is not stated. In any case, you can declare and populate array variables in Crystal formulas. And you can set the scope of these variables so they maintain their values globally.

Upvotes: 0

Related Questions