Application Development and Automation 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: 
Read only

STRLEN is unknown

Former Member
8,657

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
Read only

former_member156446
Active Contributor
0 Likes
2,792

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.

Read only

Former Member
2,792

Just give spaces in brace.

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

Regards

Kannaiah

Read only

0 Likes
2,792

thanks a lot

sateesh

Read only

athavanraja
Active Contributor
2,792


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

Read only

Former Member
0 Likes
2,792

give the space after the strlen( var1 ) .

Read only

Former Member
0 Likes
2,792

This message was moderated.