I am writing a stored proceedure that will need to check each character in a
string. Here is a snippit of code:
. . .
DEFINE myChar CHAR(1);
DEFINE i INTEGER;
FOR i IN (1 TO myStringLen)
LET myChar = myString[i,i];
IF myChar = "A" THEN
myString[i,i] = "a";
END IF
END FOR;
. . .
I get a syntax error on [i,i]. If I replace the [i,i] with [1,1] it passes
the syntax check. Is there another way to do this? I am running on Informix
7.3.
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own