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: 

cursor

Former Member
0 Kudos

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

Former Member
0 Kudos

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!

0 Kudos

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

0 Kudos

genarally

P+ = page down

P- = page up

P++ = Last page

P-- = first page.

its not with line.

regards

shiba dutta

0 Kudos

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