Microsoft DirectX 8.1 (Visual Basic)

DirectInputEnumEffects.GetName

Retrieves the name of the effect.

object.GetName(i As Long) As String

Parts

object
Resolves to a DirectInputEnumEffects object.
i
Index (1-based) of the effect in the collection.

Return Values

Returns the name of the effect, such as "Constant Force".

Error Codes

If the method fails, it raises an error and Err.Number is set.