mciErr$ Function

Purpose

Gets the descriptive text for a Mci error.

Syntax

mciErr$(errno)

errnointeger expression

Description

Gets a Description of an Mci error as text. This is the text which is displayed when using the Mci command in a message box. The error code (integer expression) is returned from Mci$().

Example

// prints the Mci error message

// are in the range of 0 till 32767

Debug.Show

Local a$, a%, i&

// only a part are filled with usable error messages

// please test it by yourself, if necessary

For i& = 0 To 32767

a$ = mciErr$(i&)

If Len(a$) <> 0 // if error i& exist

Debug "Error:";i&, a$ // print Mci error

EndIf

Next i&

See Also

Mci, Mci$, mciErr$, mciID

{Created by Sjouke Hamstra; Last updated: 29/05/2022 by James Gaite; Other Contributors: Jean-Marie Melanson}