‎2008 Jan 31 11:48 AM
I designed num1,num2 and num3 fields.Add and exit push buttons.Add push button makes numbers in num1 and num2 add,display it in num3.It works fine with 'Add' push button.I modified input field such that if num1 number is less than 4,i want num1 display as invisible or inactive.How to do this.Following code is not working.Advice please.
MODULE ZNUM1 INPUT.
IF NUM1 < 4.
IF SCREEN-NAME = 'NUM1'.
SCREEN-INVISIBLE = 1.
ENDIF.
ENDIF.
ENDMODULE.
‎2008 Jan 31 11:55 AM
Hi,
MODULE ZNUM1 INPUT.
IF NUM1 < 4.
loop at screen.
IF SCREEN-NAME = 'NUM1'.
SCREEN-INVISIBLE = 1.
modify screen.
ENDIF.
endloop.
ENDIF.
ENDMODULE
regards,
Venkatesh
‎2008 Feb 04 9:34 AM
Hi,
Try it,
MODULE ZNUM1 INPUT.
loop at screen.
IF SCREEN-NAME = 'NUM1'.
IF NUM1 < 4.
SCREEN-input = 1.
else.
SCREEN-input = 0.
ENDIF.
ENDIF.
modify screen.
endloop.
ENDMODULE.
L.Velu
‎2008 Feb 04 12:38 PM
Hi Gopi,
The main thing here is ... the MODULE ZNUM1 should be a PBO module.
MODULE ZNUM1 OUTPUT.
ENDMODULE.
Also, set the SCREEN-INPUT (0 for inactive and 1 for activE) and also set SCREEN-ACTIVE = '1'.
This should help.
Main thing (once again) it's a PBO module NOT PAI.
Regards,
Aditya