E r g e b n i s / R e s u l t
This application performs the same task as
SCRNCTRL but can only be
used within programmer. The source code written in C is an example
of how to pass an integer to a C program from within OA.
B e s c h r e i b u n g / D e s c r i p t i o n
This application allows you switch the OA screen OFF or ON. The main
use for this application would be for securing password entry from
within programmer.
According to scrnflag, the screen is turned on (1) or off (0).
S y n t a x
Code:
rval = call('scrnprog',scrnflag) P a r a m e t e r
scrnflag - Whether to turn the screen on or off:
1 - Turn the screen on
0 - Turn the screen off
R e t u r n s
B e i s p i e l / E x a m p l e
Code:
attach "scrnprog.oac"
psw = ''
put at 5,5 'Enter Password:'
scrnflag = 0
rval = call('scrnprog',scrnflag)
get at 21,10 psw width 10
put at 21,10, do clear end line
scrnflag = 1
rval = call('scrnprog',scrnflag)
put at 5,10 'The Password is : ', psw
b = false; get b
detach "scrnprog.oac"