ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / CD and DVD functions
  • Opening and closing the door of the player
  • Using the functions for managing CD/DVD players
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
CDEject (Function)
In french: CDEjecte
Opens or closes the door of CD/DVD player selected on the current computer.
Remark: 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 get more details on the error, use ErrorInfo.
<Player>: Character string
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 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.
Component: wd290grv.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/08/2022

Send a report | Local help