06-29-2007 7:20 AM
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.
06-29-2007 7:22 AM
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!
06-29-2007 7:36 AM
That means when i press <b>p++</b> it will move to next line am i correct
06-29-2007 7:41 AM
genarally
P+ = page down
P- = page up
P++ = Last page
P-- = first page.
its not with line.
regards
shiba dutta
06-29-2007 7:32 AM
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