Erin Leale
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!
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It can have a null which is the problem. How would I take care of that in the original formula? Thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Is it the formula @ExtItem or can it have a NULL part?
mlmcc