Skip to Content

How do I reset a string array variable?

I have a report with 4 different arrays.

All are set up like this

shared stringvar array arr1 := split({client_relations.sales_value}, "&");
'';

I need them to reset for each group. How do I do that? I tried something like this

WhilePrintingRecords;
shared stringvar array arr1 := " "; 

But I got an error saying the formula could not create an array.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 10 at 06:02 PM

    Hi Kurt,

    Change the reset formula to:

    WhilePrintingRecords;
    shared stringvar array arr1 := "";
    ''; 

    -Abhilash

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 10 at 03:15 PM

    Use REDIM function.

    See what Crystal HELP says:

    When an array is re-dimensioned with Redim, elements in the array are filled with default values for that type

    Add comment
    10|10000 characters needed characters exceeded