Scripting:DataTypes
From STNE Wiki
Main | Syntax | Operators | Interfaces | FAQ | Contents | API Reference | Index |
---|
Data Types in STNE
The most common data types: | |||
---|---|---|---|
Name | Description | Conversion to this type by: | Range of Values |
String | String with a maximum of 255 characters | CStr() | Letters, Special Characters, Numbers... |
Integer | An Integer | CInt() | From -2,147,483,647 to +2,147,483,647 |
Boolean | Truth Value, either True or False | CBool() | True or False |
Enum | Enum corresponds to an enumeration of possible values, best example: EBeamResource | - | Depending on the definition |
Array | Array is not an actual data type but a field in which several variables can be stored | - | - |
Less common data types | |||
---|---|---|---|
Name | Description | Conversion to this type by: | Range of Values |
Byte | Integer between 0 and 255 | CByte() | 0-255 |
Char | A single character | CChar() | |
Date | Contains the date as a variable | CDate() | |
Double | Decimal numbers with an extended range of values | CDbl() | -1.79769313486232E+308 to + 1.79769313486232E+308 |
Long | Integers with an extended range of values | CLng() | -9,223,372,036,854,775,807 to +9,223,372,036,854,775,807 |
Short | Integers with a restricted range of values | CShort() | -32,767 to 32,767 |