tips:revmedia:r106

DRVREADY

Published ByDateVersionKnowledge LevelKeywords
Revelation Technologies23 APR 19822.1XINTERMEDIATEDRVREADY, 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

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
  • tips/revmedia/r106.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1