NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HxLink DID NOT INITIALIZE

Data Type Summary

The following table shows the supported data types, including NGWS runtime types, storage sizes and ranges.

VB Type NGWS runtime Type Storage size Range
Byte System.Byte 1 byte 0 to 255
Boolean System.Bool 2 bytes True or False
Char System.Char 2 bytes 0 to 65535
Short System.Short 2 bytes -32,768 to 32,767
Integer System.Int32 4 bytes -2,147,483,648 to 2,147,483,647
Long
(long integer)
System.Int64 8 bytes -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
Decimal System.Decimal 12 bytes +/-79,228,162,514,264,337,593,543,950,335 with no decimal point;
+/-7.9228162514264337593543950335 with 28 places to the right of the decimal; smallest non-zero number is
+/-0.0000000000000000000000000001
Single
(single-precision floating-point)
System.Single 4 bytes -3.402823E38 to -1.401298E-45 for negative values; 1.401298E-45 to 3.402823E38 for positive values
Double
(double-precision floating-point)
System.Double 8 bytes -1.79769313486231E308 to
-4.94065645841247E-324 for negative values; 4.94065645841247E-324 to 1.79769313486232E308 for positive values
Date System.DateTime 8 bytes January 1, 100 to December 31, 9999
Object System.Object 4 bytes Any type may be contained in a variable of type Object
String
(variable-length)
System.String 10 bytes + string length 0 to approximately 2 billion Unicode characters.

Note   Arrays of any data type require 20 bytes of memory plus 4 bytes for each array dimension plus the number of bytes occupied by the data itself. The memory occupied by the data can be calculated by multiplying the number of data elements by the size of each element. For example, the data in a single-dimension array consisting of 4 Integer data elements of 4 bytes each occupies 16 bytes. The 16 bytes required for the data plus the 24 bytes of overhead brings the total memory requirement for the array to 40 bytes.
An Object containing an array requires 4 bytes more than the array alone.
Note   Use the StrConv function to convert one type of string data to another.

See Also

Boolean Data Type | Byte Data Type | Char Data Type | Date Data Type | Decimal Data Type | Double Data Type | Int, Fix Functions | Integer Data Type | Long Data Type | Object Data Type | Short Data Type | Single Data Type | StrConv Function | String Data Type | Type Conversion Functions |Using Data Types Efficiently