trushant.w
New User
Joined: 22 Sep 2013 Posts: 81 Location: pune india
|
|
|
|
I want to check whether the single code is present in string or not at 7th position. So I am using as below
Code: |
SUBSTR(arg1,7,1) = "'" |
But this is not working. Also I cannot put the single code in two single codes.
Please check and share your thoughts. |
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
But this is not working. |
how sad, I hope that You will be able to fix it
unless You learn to post meaningful information all You will get will be sarcastic remarks
Code: |
/* rexx*/
arg1 = "1234567890"
say substr(arg1,7,1)
if substr(arg1,7,1) = "'" then,
say "GOT IT"
else ,
say "WTF"
arg1 = "123456'890"
say substr(arg1,7,1)
if substr(arg1,7,1) = "'" then,
say "GOT IT"
else ,
say "WTF"
exit
|
|
|