Description
The variant type determines the kind of value that can be stored in a parameter.
Note: Only a subset of these types are fully supported and recommended for use: these are siString, siBool, siDouble, siFloat, siInt4, siInt2, siUInt4, siUInt2, siByte, and siUByte. (See Comparing Data Types across Languages for more information).
C# Syntax
siVariantType.siEmpty // 0 siVariantType.siInt2 // 2 siVariantType.siInt4 // 3 siVariantType.siFloat // 4 siVariantType.siDouble // 5 siVariantType.siString // 8 siVariantType.siDispatch // 9 siVariantType.siBool // 11 siVariantType.siUnknown // 13 siVariantType.siByte // 16 siVariantType.siUByte // 17 siVariantType.siUInt2 // 18 siVariantType.siUInt4 // 19 siVariantType.siInt // 22 siVariantType.siUInt // 23 siVariantType.siWStr // 31
|
Constant |
Value |
Description |
|
0 |
no type |
|
|
2 |
2 bytes signed integer number (-32768..32767) |
|
|
3 |
4 bytes signed integer number (-2147483648..2147483647) (See Long) |
|
|
4 |
Float: single precision real number (-3.402823466e+38F..3.402823466e+38F) |
|
|
5 |
Double: double precision real number (-1.7976931348623158e+308..1.7976931348623158e+308) |
|
|
8 |
Text represented as a BSTR. See String. |
|
|
9 |
dispatch object. This is an object which exposes methods and properties to scripting. This is the variant type of all objects in the Object Model. |
|
|
11 |
||
|
13 |
Pointer to a COM object. This object cannot be manipulated from scripting and such an object is not normally exposed in the Object Model. |
|
|
16 |
byte (-128..127) |
|
|
17 |
unsigned byte (0..255) |
|
|
18 |
2 bytes unsigned integer number (0..65535) |
|
|
19 |
4 bytes unsigned integer number (0..4294967295) |
|
|
22 |
signed machine integer. This variant type is not supported, use siInt4 instead. |
|
|
23 |
unsigned machine integer. This variant type is not supported, use siUInt4 instead. |
|
|
31 |
Null-terminated wide character string. This variant type is rarely encountered because siString is the recommended representation for all Softimage strings. |
Applies To
|
|
See Also
|
|
|
|
Autodesk Softimage v7.5