Sapna20
20th December 2013, 11:23
Hi Experts,

I am using a string array and then printing it on SSRS Report.
I declare the String Array as:

extern domain tcmcs.str100 labl(10)

and then based on my requirement I am passing the values as:

labl(n) = "Week" & " " & str$(n)

but when i am compile the script , the error occured as:

Illegal number of subscripts for 'labl' .

If I use the declaration as : string labl(10) then error doesn't occured bt in report, i have to define its domain then what should i define there...

please help me in this context.

Thanks
Sapna

bhushanchanda
20th December 2013, 12:14
Hi,

You would probably not be able to use string arrays like this unless you use the format like string arr_name(size).

What you can do is, when you fill in your array, you can assign the value to a variable and pass it to your report.

Also, check this Thread (http://www.baanboard.com/baanboard/showthread.php?t=41612) where gunthur has showed how to do it.