Crystal Reports: Array_Push() Function

Add a string value to an array of strings, only if string value hasn’t already been added to the array.

Function (Stringvar Array Items, Stringvar Value)
    If Array_Contains (Items, Value) = False Then (
        Redim Preserve Items[Ubound(Items)+1];
        Items[Ubound(Items)]:=Value;
    );
    Items;

One thought on “Crystal Reports: Array_Push() Function

  1. Kevin

    I don’t understand. Can you give me an example? I am trying to add the values from a field into a list. The field is Templates_titles

Leave a Reply

Your email address will not be published. Required fields are marked *