user1532113
user1532113

Reputation: 445

A subscript must be between 1 and size of array ERROR (Crystal Reports)

What might be the problem with this code?

**WhilePrintingRecords;
Shared NumberVar Array myTotal;
myTotal[UBound(myTotal)];**

Upvotes: 1

Views: 3337

Answers (1)

Ally
Ally

Reputation: 1922

In Crystal Reports, the array indexes start at 1. So, you'll need to use UBound(myTotal) + 1

Upvotes: 1

Related Questions