home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: Educate
/
Educate.zip
/
radf100.zip
/
RESIDENT.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-07-24
|
863b
|
42 lines
/* external functions for THE RESIDENT */
/* first get the function to execute */
/* there is only one function, but send it as an arguement, */
/* just to keep the style correct */
Parse Arg Tag, Arg
If Tag \= "Police" Then return "error"
Interpret "Signal" tag
end
Police:
/* bring up a window to ask for the Badge # */
b.0 = 2
b.1 = "OK"
b.2 = "Cancel"
x = VRPrompt(VRWindow(),"Badge #:", y, "Locker Security", "b.", 1, 2)
/* quit if the player hit cancel */
If x = 2 Then Return 0
/* bring up a window to ask password */
x = VRPrompt(VRWindow(), "Password:", z, "Locker Security", "b.", 1, 2)
/* return 1 if y=8356 and z= "SUZIE" */
/* first translate Z to all upper case */
z = Translate(z, XRange("A", "Z"), XRange("a", "z"))
/* do the check */
If (y = 8356) & (z = "SUZIE") Then Return 1
return 0