Link to home
Start Free TrialLog in
Avatar of Erin Leale
Erin LealeFlag for United States of America

asked on

subscript must be between 1 and the size of the array -

Here is my formula - (thank you mlmcc) -

Local StringVar Array strLineParts;
Local NumberVar index;
Local StringVar strOutput;

strLineParts := Split({@ExtItem},'!');
For index := 2 to UBound(strLineParts) do
    strOutput := strOutput & strLineParts [index] & ' ';

strOutput := strOutput & chr(13) & strLineParts [1];

strOutput


I think it is having an issue when the field it blank.  I get the array error - I tried adding if (isnull({field}) then "" else the rest of the formula but it is not working.

Can you help?  

Thank you!
ASKER CERTIFIED SOLUTION
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mike McCracken
Mike McCracken

What part can be blank?

Is it the formula @ExtItem or can it have a NULL part?

mlmcc
Avatar of Erin Leale

ASKER

It can have a null which is the problem.  How would I take care of that in the original formula?   Thanks
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial