chrisppppp
MIS
Crystal XI
Hi, i'm using the formula below to work out the surname of a string:
{@Surname}
stringvar array x := split({tblPolicy.PolicyHolder}," ");
x[ubound(x)]
However whilst it is running i get the following error:
"A subscript must be between 1 and the size of the array"
and it highlights the 'x[ubound(x)]' part of the formula
Can anybody give me any help or suggestions for what i should do with this so that my report runs correctly?
Cheers
Hi, i'm using the formula below to work out the surname of a string:
{@Surname}
stringvar array x := split({tblPolicy.PolicyHolder}," ");
x[ubound(x)]
However whilst it is running i get the following error:
"A subscript must be between 1 and the size of the array"
and it highlights the 'x[ubound(x)]' part of the formula
Can anybody give me any help or suggestions for what i should do with this so that my report runs correctly?
Cheers