Microsoft DirectX 8.1 (Visual Basic)

DirectXFile.CreateEnumObject

Creates an enumerator object.

object.CreateEnumObject( _
    FileName As String) As DirectXFileEnum

Parts

object
Object expression that resolves to a DirectXFile object.
FileName
String value set to the file name.

Return Values

Returns a DirectXFileEnum object, representing the created enumerator object.

Error Codes

If the method fails, an error is raised and Err.Number can be set to one of the following values.

DXFILEERR_BADALLOC
DXFILEERR_BADFILEFLOATSIZE
DXFILEERR_BADFILETYPE
DXFILEERR_BADFILEVERSION
DXFILEERR_BADRESOURCE
DXFILEERR_BADVALUE
DXFILEERR_FILENOTFOUND
DXFILEERR_RESOURCENOTFOUND
DXFILEERR_URLNOTFOUND

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

Remarks

After using this method, use one of the DirectXFileEnum methods to retrieve a data object.

See Also

DirectXFileEnum