**User970540014 posted**
I have the following array routine within my crystal reports formula field:

dim aryInfo() as string
dim aryField() as string
dim sField as string
dim n as number
dim iPos as number
aryinfo = split({Command.Info},">")
formula = ""
for n = 1 to count(aryinfo)
sfield = aryinfo(n)
iPos = instr(sfield,"</LastName")
if iPos > 0 then
formula = left(sfield,ipos-1)
end if
iPos = instr(sfield,"</FirstName")
if iPos > 0 then
formula = LEFT(sfield,ipos-1) & " " & formula
exit for
end if
next

When I run the crystal report, I got erro message "An array's dimention must be an integer between 1 and 1000.

The error is pointing to

**aryinfo = split({Command.Info},">")**

It is my first time using this method within my formula field. Not certain how to go about fixing this error.

Please help!