2009 Mar 18 4:02 AM
hi
how to count word in second position in string
i have DT09
now i want to give condition on second word T.
ex: if DT09(2) = T
thanks
2009 Mar 18 4:04 AM
hi. use it as
data: text(10).
text = 'DT02'.
if text+1(2) = 'T'.
write: ' 2nd letter is T'.
endif.
Edited by: tahir naqqash on Mar 18, 2009 9:05 AM
Edited by: tahir naqqash on Mar 18, 2009 9:08 AM
2009 Mar 18 4:07 AM
2009 Mar 18 4:08 AM
Hi,
U can use text+(0)2 to retrieve the 2nd Letter od the word.
2009 Mar 18 4:10 AM
HI,
you do like this
ex: if DT09(2) = T
Try this
suppose u have string
str = 'ABSCGDTRU'
you want second letter of this string .i.e. B.
do like this
str+1(2)
"this gives u the second letter .e.i. B.
hope this help you
Regatds
Ritesh J
2009 Mar 18 4:10 AM
data: text(10).
text = 'DT02'.
if text+(2) = 'T'.
write: ' 2nd letter is T'.
endif.
2009 Mar 18 4:20 AM
2009 Mar 18 4:20 AM