home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
sema4.zip
/
semaphor
/
main
/
form.1
< prev
next >
Wrap
Text File
|
1994-02-17
|
1KB
|
40 lines
Arg window
Call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
Call SysLoadFuncs
rc=RxFuncAdd('VpUtilLoadFuncs','VpUtil', 'VpUtilLoadFuncs')
CALL VpUtilLoadFuncs
result = SysDriveMap('C:', 'USED')
parse var result drive results
drives.1 = drive
count=1
DO WHILE results <> ''
count=count+1
parse var results drive results
drives.count = drive
END
/* Add items from list Spin Button */
drives.0 = count
index=VpAddItem(window, 1000, 'LIST', 'DRIVES.')
/*Get item value Spin Button */
CURRENT_DRIVE = VpGetItemValue(window,1000)
/* The following two lines set an application variable equal to the
** current drive. This information is used to set the current Swap file
** size data. */
os_drive=left(SysSearchPath('PATH','CMD.EXE'),2)
CALL VPAppVariable "SET","OSDRIVE",os_drive
/* Create an unnamed event semaphore */
SWAPID=VpSemaphore("EVENT","CREATE",'',0)
/* Create a new thread and run the event semaphore */
TID=VpThread("START",0,"SWAPINFO.CMD",window,SWAPID)
/* Set range INTERVAL Spin Button */
CALL VpSetRange window,'INTERVAL',1,100 /* Set spin button range*/