Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> volremoveabletest()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 VolRemoveableTest()
------------------------------------------------------------------------------
 Purpose:
 Verify if a volume is removeable.

 Syntax:
 bResult = VolRemoveableTest( iVolNum )

 Parameters:
 iVolNum The volume number - 0 for the first volume, 1 for the second etc.

 Returns:
 A boolean value (TRUE or FALSE).

 The CA-Clipper name for this function is:
 VolRemTst()

 Description:
 VolRemoveableTest() returns TRUE if volume number iVolNum is removeable.

 Returns FALSE if not, or if an error occurs.

 Example:
 // To display whether the first disk volume is removable:
 bRemove = VolRemoveableTest( 0 )
 do case
    case bRemove
       ? "Volume 0 is removeable"
    case NWErrorGet() = 0
       ? "Volume 0 is not removeable"
    otherwise
       ? "Error"
 endcase

 Notes:
 If FALSE is returned, check NWErrorGet().

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson