[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: EXIST, FILE STATUS



Jim, there's certainly method in VA$WS. It's a 9-bit binary number; 1=open
window, 0=closed. Suppose VA$WS=428. Convert that to binary: 110101100.
Therefore, windows 3, 4, 6, 8, and 9 are open; the rest are closed. If
VA$WS=1, then only window 1 is open (because the binary number is 000000001).
See DEC2BIN.PM in OODLES.LIB [OODLES.ZIP], which gets open window numbers
automatically, and performs any sort of Decimal-Binary covnersion with some
tweaking. An example PM called BASE2BAS.PM, found in MAKEHDIR.DOC
[MAKEHDIR.ZIP], performs base-to-base conversions more efficiently and easily.