Hi folks!
Here is mt code in C# and and works fine...
try
{
int Count = 0;
Array PropertyIDs;
Array Descriptions;
Array DataTypes;
ConnectedOPCServer.QueryAvailableProperties(node.Text,
out Count, out PropertyIDs,
out Descriptions, out DataTypes);
....
Here - DataTypes - I have integer value for the data types.
I need convert it from integer value to C# .NET datatype name.
like "int" and etc...
For the Visual Basci it is OK. I have the table for it.
vbEmpty 0 Empty (uninitialized)
vbNull 1 Null (no valid data)
vbInteger 2 Integer
vbLong 3 Long Integer
vbSingle 4 Single
vbDouble 5 Double
vbCurrency 6 Currency value
vbDate 7 Date value
vbString 8 String
vbObject 9 Object
vbError 10 Error value
vbBoolean 11 Boolean value (Zero and Non-zero)
vbVariant 12 Variant. (Array Only)
vbDataObject 13 A data access object.
vbByte 17 Byte
vbUserDefinedType 36 Variants that contain user-defined types
vbArray 8192 Array
But for C# I am looking for any solution....
So, I need convert data calssification integer value to C# .NET data type name.
Please help folks!
Here is mt code in C# and and works fine...
try
{
int Count = 0;
Array PropertyIDs;
Array Descriptions;
Array DataTypes;
ConnectedOPCServer.QueryAvailableProperties(node.Text,
out Count, out PropertyIDs,
out Descriptions, out DataTypes);
....
Here - DataTypes - I have integer value for the data types.
I need convert it from integer value to C# .NET datatype name.
like "int" and etc...
For the Visual Basci it is OK. I have the table for it.
vbEmpty 0 Empty (uninitialized)
vbNull 1 Null (no valid data)
vbInteger 2 Integer
vbLong 3 Long Integer
vbSingle 4 Single
vbDouble 5 Double
vbCurrency 6 Currency value
vbDate 7 Date value
vbString 8 String
vbObject 9 Object
vbError 10 Error value
vbBoolean 11 Boolean value (Zero and Non-zero)
vbVariant 12 Variant. (Array Only)
vbDataObject 13 A data access object.
vbByte 17 Byte
vbUserDefinedType 36 Variants that contain user-defined types
vbArray 8192 Array
But for C# I am looking for any solution....
So, I need convert data calssification integer value to C# .NET data type name.
Please help folks!