E r g e b n i s / R e s u l t
turn screen on/off from anywhere within OA3 (including programmer)
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. It can also be used to automatically start a programmer
or Compiled application without displaying the OA main menu or application
menu. This is done by starting OA with the A= and M= parameters. A macro
must be called that either turns the screen on again using an option
on the Applications Menu, or that starts a program that first turns the
screen back on. A sample text file is provided to be used with
the A= parameter (i.e, OA3 A=cstart).
S y n t a x
Code:
rval = call('scrnon')
rval = call('scrnoff') P a r a m e t e r
R e t u r n s
B e i s p i e l / E x a m p l e
Code:
attach "scrnctrl.oac"
psw = ''
put at 5,5 'Enter Password:'
rval = call('scrnoff')
get at 21,10 psw width 10
put at 21,10, do clear end line
rval = call('scrnon')
put at 5,10 'The Password is : ', psw
b = false; get b
detach "scrnctrl.oac"