Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

STRLEN is unknown

Former Member

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

6 REPLIES 6

former_member156446
Active Contributor
0 Kudos

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.

Former Member

Just give spaces in brace.

leng = strlen( str ).
j = leng - 4.
var = str+j(4).

Regards

Kannaiah

0 Kudos

thanks a lot

sateesh

athavanraja
Active Contributor


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

Former Member
0 Kudos

give the space after the strlen( var1 ) .

0 Kudos

This message was moderated.