Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== DRVREADY===== ^Published By^Date^Version^Knowledge Level^Keywords^ |Revelation Technologies|23 APR 1982|2.1X|INTERMEDIATE|DRVREADY, FLOPPY, DRIVE| The DRVREADY function, provided with Advanced Revelation 2.12, lets you determine whether a floppy disk drive is ready. Pass a 0 for drive A and a 1 for drive B. DRVREADY returns true (1) if the drive is ready, otherwise false (0). Drives C and higher are not supported. Figure 1 shows how DRVREADY can be used in a program. **Note**: On some single floppy drive systems DRVREADY will return true when testing (the non-existent) drive B. === Example: Figure 1 === <code> DECLARE FUNCTION DRVREADY DECLARE SUBROUTINE MSG DRV = 0 DONE = 0 LOOP DONE = DRVREADY(DRV) IF DONE ELSE MSG('Insert disk into drive %1%|and close door','','',CHAR(65DRV)) END UNTIL DONE REPEAT </code> tips/revmedia/r106.txt Last modified: 2024/06/19 20:20by 127.0.0.1