Signature (Visual Basic / VBA)
Public Function DRIVEConstantToString( _
ByVal vDriveType As Variant _
) As Variant
Code Example
DRIVEConstantToString(DRIVE_CDROM) = "CDROM"
DRIVEConstantToString(DRIVE_FIXED) = "FIXED"
DRIVEConstantToString(2938923) = "UNKNOWN"
IsNull(DRIVEConstantToString(Null)) = True
Parameters
| Parameter | Description |
|---|---|
| vDriveType | Numeric constant that describes a type of storage device. Function returns Null if vDriveType is Null or cannot be fixed-up to a number. Function returns the string "UNKNOWN" if vDriveType is not one of the valid drive type identifiers. |