This method scans the given RC-WinTrans enumeration for the given enum value and provides the string. It returns whether the scan was successful.

Syntax:

GetStringFromEnumValue( EnumerationName As String, 
EnumValue As Long, EnumString As Variant) As Boolean
Return: Boolean
Parameters: EnumerationName Name of the enumeration to be scanned.
EnumValue Enum value for which to search.
EnumString Returned string of the type "Variant."

Example:
Dim Tool As VBATool
Dim StrAry() As String
Dim StringValue As Variant

Set Tool = Tools.VBATool

' call with enumeration name
If (Tool.GetStringFromEnumValue("XLIFFGroupAttributes", group_translate, StringValue)) Then
    MsgBox CStr(StringValue)
End If

' call with concrete long value
If (Tool.GetStringFromEnumValue("XLIFFGroupAttributes", 25, StringValue)) Then
    MsgBox CStr(StringValue)
End If
Remarks: The "EnumString" parameter is of the type "Variant." A usage of this method in VBScript is therefore also possible.

See also:

Class VBATool


Last Updated: 04/27/05