This is really simple, but I'm having problems finding out the correct syntax and function in the Help files for reading a string character by character.
Basically I want to get get the lenght of the string and then use a Do loop to read the the string character by character.
ASSIGN MyItem = "Hello World!).
ASSIGN NumCharacters = LENGTH(MyItem, "CHARACTER").
If NumCharacters > 0 THEN DO:
DO I = 1 to NumCharacters:
ASSIGN C_by_C = ?????(MyItem, I).?????
RUN MyProcedure.
END. /* End DO I = 1 Statement */
END. /* End If NumCharacters > 0 */
Thanks,
CR Junk
Basically I want to get get the lenght of the string and then use a Do loop to read the the string character by character.
ASSIGN MyItem = "Hello World!).
ASSIGN NumCharacters = LENGTH(MyItem, "CHARACTER").
If NumCharacters > 0 THEN DO:
DO I = 1 to NumCharacters:
ASSIGN C_by_C = ?????(MyItem, I).?????
RUN MyProcedure.
END. /* End DO I = 1 Statement */
END. /* End If NumCharacters > 0 */
Thanks,
CR Junk