richardleehl
Technical User
Hi,
I created a main report that passes a variable to the subreport.
Main report:
shared stringvar strShowValue2;
strShowValue2:=strShowValue2+totext({@v_percentage})+"^";
I pass this to my subreport and it shows in subreport as:
{?Pm-@v2_ShowValue}= 0.00^0.00^95.04^0.00^
When I try to strip this passed variable per following:
tonumber(Split({?Pm-@v2_ShowValue},"^")[RecordNumber])
I get the message:
A subscript must be between 1 and the size of the array.
Any ideas why this is happening?
Any help would be greatly appreciated.
I created a main report that passes a variable to the subreport.
Main report:
shared stringvar strShowValue2;
strShowValue2:=strShowValue2+totext({@v_percentage})+"^";
I pass this to my subreport and it shows in subreport as:
{?Pm-@v2_ShowValue}= 0.00^0.00^95.04^0.00^
When I try to strip this passed variable per following:
tonumber(Split({?Pm-@v2_ShowValue},"^")[RecordNumber])
I get the message:
A subscript must be between 1 and the size of the array.
Any ideas why this is happening?
Any help would be greatly appreciated.