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

Regarding length

Former Member
0 Likes
443

hi,

how can i find the length of numeric fields

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
427

H,

do like this.

PARAMETERS:num(10) type n.

data:len type n,

char(10).

char = num.

SHIFT char LEFT DELETING LEADING '0'.

len = strlen( char ).

write:/ len.

rgds,

bharat.

2 REPLIES 2
Read only

Former Member
0 Likes
427

Hi,

Move it to a CHAR and use the Key Word STRLEN

Read only

Former Member
0 Likes
428

H,

do like this.

PARAMETERS:num(10) type n.

data:len type n,

char(10).

char = num.

SHIFT char LEFT DELETING LEADING '0'.

len = strlen( char ).

write:/ len.

rgds,

bharat.