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

cursor

Former Member
0 Likes
546

HI friends please explain this code . what is that p-- ,p+ .

FORM PAGING USING CODE.

DATA : I TYPE I,

J TYPE I.

CASE CODE.

WHEN 'P--'.

TCTRL_PHONELIST-TOP_LINE = 1.

WHEN 'P-'.

TCTRL_PHONELIST-TOP_LINE = TCTRL_PHONELIST-TOP_LINE - L_COUNT.

IF TCTRL_PHONELIST-TOP_LINE LE 0.

TCTRL_PHONELIST-TOP_LINE = 1.

ENDIF.

WHEN 'P+'.

I = TCTRL_PHONELIST-TOP_LINE + L_COUNT.

J = TCTRL_PHONELIST-TOP_LINE - L_COUNT + 1.

IF J LE 0.

J = 1.

ENDIF.

IF I LE J.

TCTRL_PHONELIST-TOP_LINE = I.

ELSE.

TCTRL_PHONELIST-TOP_LINE = J.

ENDIF.

WHEN 'P++'.

TCTRL_PHONELIST-TOP_LINE = TCTRL_PHONELIST-LINES - L_COUNT + 1.

IF TCTRL_PHONELIST-TOP_LINE LE 0.

TCTRL_PHONELIST-TOP_LINE = 1.

ENDIF.

ENDCASE.

ENDFORM.

4 REPLIES 4
Read only

Former Member
0 Likes
513

Hi, Prajwal,

It is Function code allocated to the scrollling of page.

P-- : Move 1 line back

P++ : Move one line forward

P+ : Page sroll up

P- : Page scroll down.

Reward if useful!

Read only

0 Likes
513

That means when i press <b>p++</b> it will move to next line am i correct

Read only

0 Likes
513

genarally

P+ = page down

P- = page up

P++ = Last page

P-- = first page.

its not with line.

regards

shiba dutta

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
513

HI,

This is the code to support VERTICAL SCROLLING of a table control.

Here P-- means move by nubmer of lines that are currently displayed.

P++ means next 5 records (Supposing you are displaying 5 records at once)

P- is move up by one line

P+ move down by one line.

All are Funtction codes when you click on the SCORLLING buttons of the table control

Regards,

Sesh