on 06-01-2015 10:47 PM
I just got this error message in a report that has been working. Any ideas please what this means..
" An Array's dimension must be between 1 and 1000"
shared stringvar array a;
local stringvar t := {CLSPAYTP.OTORD#};
shared numbervar c:=c;
shared stringvar ords:=ords;
//if instr(ords,{CLSPAYTP.OTORD#})<=0 then
ords:=ords & ',' & {CLSPAYTP.OTORD#};
if not(t in a)
then (
c:= c + 1;
//*** on next line we get the error *****
redim preserve a[c];
a[c] := t;
);
if c > 0 then a[c]
Hi Paul,
Use a delimited string as a workaround:
shared stringvar a;
local stringvar t := {CLSPAYTP.OTORD#};
shared stringvar ords:=ords;
if instr(a, t) = 0 then
(
a := a + {CLSPAYTP.OTORD#} + '. ';
);
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Crystal limits arrays to 1000 elements, so this will happen when you try to add more than 1000 elements to an array.
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.