10-08-2007 9:08 AM
10-08-2007 9:11 AM
use STRLEN Command.
v_len = STERLEN (v_char).
Regards,
Amit
Reward all helpful replies.
10-08-2007 9:10 AM
Hi Sen,
Use STRLEN.
strlen will give string length.
Returns the length of a character-type field in characters. With c-fields, as opposed to fields with type STRING, only the actual length used is relevant because blanks at the end are not counted.
DATA: STRING(25) VALUE ' one two three four',
LEN TYPE I.
LEN = STRLEN( STRING ).
WRITE: STRING, '!'.
WRITE: / 'Length: ', LEN.
Thanks,.
10-08-2007 9:11 AM
use STRLEN Command.
v_len = STERLEN (v_char).
Regards,
Amit
Reward all helpful replies.
10-08-2007 9:16 AM
10-08-2007 9:18 AM
Hi
data : str(10) type c, len type I.
len = STRLEN ( STR ).
gives the length of the string
Regards
Anji