Hi again,

Quick question...
I have a string of text in a variable...

%text |a|b|c||||d|||e|||

I want to use $gettok() on this string to separate it out into variables...but when there is no data between the ||'s, it is skipped. In the above example, $gettok(%text,4,124) == d, not null. (I guess $gettok can't pull a null value...makes sense.)
If there is a space between the ||'s, then it will $gettok the space.

So what would be the most effective way to break this line up and insert spaces in-between the ||'s ? I'm guessing a while loop, and a replace function...but can anyone think of anything else to try?

Thanks,
AltReality