‎2007 Apr 18 9:48 AM
Dear All,
How to find the length of the content stored in a variable.
ex: data: str(20) type c,
n type i.
str = 'abcd'.
I want the answer to be 4 to store in n and display n.
I tried with 'DESCRIBE' it is returning the declared length of variable and displays 20.
‎2007 Apr 18 9:51 AM
Hi
Use the Command
<b>STRLEN </b> which gives the String Length
reward if useful
regards,
Anji
‎2007 Apr 18 9:51 AM
Hi
Use the Command
<b>STRLEN </b> which gives the String Length
reward if useful
regards,
Anji
‎2007 Apr 18 10:09 AM
‎2007 Apr 18 9:52 AM
Hi,
U can find like this
V_LEN = STRLEN( str ).
Regards,
Krishna K.
‎2007 Apr 18 9:54 AM
‎2007 Apr 18 9:55 AM
Hi sarath,
use the command string length <b>STRLEN</b> to find the length of the variable u hav declared.
****reward points if useful.
all the best