PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Opening and closing the door of the player
  • Using the functions for managing the CD/DVD players
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
CDEject (Function)
In French: CDEjecte
Opens or closes the door of CD/DVD player selected on the current computer.
Note: To find out the list of CD/DVD players available from the current computer, use CDList.
Example
// Opens the door of drive E:
ResOpen is boolean
ResOpen = CDEject("E:")
// Error occurred?
IF ResOpen = False THEN
// Display the error
Error(ErrorInfo(errMessage))
ELSE
Info("Insert the CD into the player")
END
Syntax
<Result> = CDEject(<Player> [, <Opening>])
<Result>: Boolean
  • True if the requested operation was performed,
  • False otherwise. To find out the error details, use ErrorInfo.
<Player>: Character string (with quotes)
Player whose door must be opened or closed
<Opening>: Optional boolean
  • True (by default) if the player door must be opened,
  • False if the player door must be closed.
Remarks

Opening and closing the door of the player

  • CDEject(<Player>,True) has no effect if the door of the player is already opened. CDEject(<Player>, False) has no effect if the door of the player is already closed.
  • Some players may ignore the request for closing the door. In this case, CDEject returns True even if the player door remains opened.

Using the functions for managing the CD/DVD players

WINDEV The CD functions are available for Windows XP and later.
WEBDEV - Server code The player used corresponds to the player found on the Web server. This server must be running Windows XP or later.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230grv.dll
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment