2007 Aug 10 6:48 AM
Hi!
is there any standart function to check a character of a string by position?
For example, I need to check is first character is "A" and second character is "B".
Do I need to process the string manually or is it a standart function for this?
Will reward,
M.
2007 Aug 10 6:50 AM
hi,
u can check using the following syntax:
data: str type string value 'ABCD'.
check str+0(1) = 'A'.
regards,
Navneeth K.
2007 Aug 10 6:50 AM
hi,
u can check using the following syntax:
data: str type string value 'ABCD'.
check str+0(1) = 'A'.
regards,
Navneeth K.
2007 Aug 10 6:52 AM
You need to use the OFFSET
data : name(10) type c.
Name = 'GopiNarendra'.
write : name+0(3).
" Output
Gop
Writes the first three characters
Regards
Gopi