Re: Subscripting in SPL
Posted in 1998
June Tong — — source: Informix-list mailing list archive (1991-1998)
> Boris wrote... > >Well, I know that you can use constants as subscripts, but my question was > >about using variabales. I'd like to do something like this: > > > > FOR i = 1 TO max_i > > IF str[i] = certain_character THEN > > LET str[i] = another_character; > > END IF > > END FOR > > > >SPL gives me syntax error ... If you're on 7.30, I think the substring function (I forget whether it's SUBSTR() or SUBSTRING() ) will work for you. Try SUBSTR(str,i,1). June -- june_t@hotmail.com Grounded in Palo Alto, living on M&M's (peanut)