05-27-2008 8:28 AM
hi all
leng = strlen(str).
j = leng - 4.
var = str+j(4).
what is the error in above code
while checking it shows
"Field "STRLEN" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement."
regards
sateesh
05-27-2008 8:30 AM
check this it works fine...
if not p_sernr is initial.
vl_sernr = p_sernr.
clear p_sernr.
vl_len = strlen( vl_sernr ).
vl_len = vl_len - 1.
p_sernr = vl_sernr+0(vl_len).
endif.
05-27-2008 8:30 AM
Just give spaces in brace.
leng = strlen( str ).
j = leng - 4.
var = str+j(4).
Regards
Kannaiah
05-27-2008 8:34 AM
05-27-2008 8:32 AM
strlen( str ).
you need a space between ( and str and )
sorry about the duplicate post. guys were too quick
Edited by: Durairaj Athavan Raja on May 27, 2008 10:32 AM
05-27-2008 8:35 AM
09-30-2015 2:21 PM