PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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
MCISize (Function)
In french: MCITaille
Returns or modifies the size of a multimedia file, previously opened (function MCIOpen). The unit used is the one specified by MCIPositionFormat.
Example
MCIOpen("Son.wav", "MonSon")
MCIPositionFormat("MonSon", MciFormatMS)
...
MCIPlay("MonSon")
...
Res_Taille = MCISize("MonSon")
...
MCIClose("MonSon")
Syntax
<Result> = MCISize(<Multimedia file or alias> [, <Parameters> [, <Name of message window>]])
<Result>: Character string
  • File size in the format specified by the MCIPositionFormat function.
  • Empty string if an error occurred. To find out the error number, use function MCIErr. To get the details of the error, use MCIMsgErr or ErrorInfo with the errMessage constant.
    The report of the order can be known with the function MCIRetrieve.
<Multimedia file or alias>: Character string
Name of multimedia file to use (AVI, MP3, ...) or alias defined when opening the file (MCIOpen).
<Parameters>: Optional character string
Additional parameters if necessary. These parameters can be known by checking the documentation of the Windows MCI function named "status".
The MciWait constant can be added to this string. This constant is used to indicate that the program must wait for the end of the MCI command to run the rest of application.
<Name of message window>: Optional character string
Name of window used to intercept and manage the different messages sent by MMSYSTEM.DLL. These messages are of type MM_xxxxxx and can be retrieved using function Event. You can for example get messages regarding the management of the CD ROM or Joystick.
Component: wd270std.dll
See also
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment