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

offset definition

Former Member
0 Likes
555

HI,

if we code like this! is it from 5th character spanning 3 char or from 6th character spanning 3 char?

if _lot+5(3) na 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.

exit.

endif.

1 ACCEPTED SOLUTION
Read only

gopi_narendra
Active Contributor
0 Likes
499

its starting <b>after 5th</b> Character

ie starting <b>from 6th</b> character

ie in u case

lot+5(3) will return FGH

Regards

- Gopi

3 REPLIES 3
Read only

gopi_narendra
Active Contributor
0 Likes
500

its starting <b>after 5th</b> Character

ie starting <b>from 6th</b> character

ie in u case

lot+5(3) will return FGH

Regards

- Gopi

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
499

As you can see in this short program, it is the 6th 7th and 6th characters which is shown.



report zrich_0001.

data: _lot type string.

_lot = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.

write:/ _lot+5(3).

So, really it is the 6th character spanning + 2 more.

Regards,

RIch Heilman

Read only

Former Member
0 Likes
499

HI

This command to display 6,7,and 8 char. (starting from 6 to 😎

regards

Usman