Hello,
I have a webproject, where I want receive multiple parameters dynamically. I receive this values in SALES REP in this way (2,34,53,40), so I try to put all this values into an array and then look for them inside the table, but it's giving me this error:
"A subscript must be between 1 and the size of the array. Details: errorKind Error in File LE777 {D8EFF973-FF68-48FA-B19E-282729765CDE}.rpt: Error in formula Record_Selection: 'NumberVar ListSize := Count(Split({?SALES REP},"|")); ' A subscript must be between 1 and the size of the array. Details: errorKind " And SALES REP is not empty.
This is the code in the Report Selection Expert:
NumberVar ListSize := Count(Split({?SALES REP},"|"));
StringVar Array List[ListSize];
NumberVar i;
for i:=1 to ListSize do
(
List = Split({?SALES REP},",")
);
{LE10.PRIM_SREP_NUM} in List
Any idea about how to do this? Is it possible to select records from an array as I am trying to do?
Thank you.
Edited by elafito - 26 Apr 2010 at 12:51pm