Video Text explanation:
A variable is a sequential bucket with a name. Apply for and name a bucket by defining variables in the source code, and use the bucket by the variable name. A variable is a temporary place for storing data in a program. You can use only one variable or multiple variables in the Code. The variables can store words, values, dates, and attributes.
Easy language variable data type table
Data Type name |
Data that can be stored |
Initial Value |
Byte type |
Numeric type, table quantity range: [1, 0,255], occupies 1 byte of storage space. |
0 |
Short integer |
Numeric type, table quantity range: [-32768,32767], occupies 2 bytes of storage space. |
0 |
Integer |
Numeric type, table quantity range: [-2147483648,2147483648], occupying 4 bytes of storage space. |
0 |
Long Integer type |
Numeric type, table quantity range: [-9223372042554775808, 9223372042554775807], occupies 8 bytes of storage space. |
0 |
Decimal type |
Numeric type. The value range of a table is ± 3. 4 × 10 ± 38. It occupies 4 bytes of storage space. |
0 |
Double-precision decimal type |
Numeric type, the number of tables range: ± 1. 7 × 10 ± 308, occupying 8 bytes of storage space. |
0 |
Logical type |
It indicates that data with two values, such as true and false data and men and women, occupies 4 bytes of storage space. |
False |
Datetime type |
Indicates the data of the year, month, day, minute, and second, occupying 8 bytes of storage space. |
* |
Text Type |
Used to represent descriptive text, symbols, and other data. The variable in easy language can be larger than 64 KB. |
"" |
Byte set |
It can be used to represent any data, such as video, video, and sound. The meaning of the data represented by it depends on the Data designer. |
{} |
Subroutine pointer |
Indicates the address of the subroutine in the memory. This is a data type specially designed for programming. Occupies 4 bytes of storage space. |
0 |
Easy language variable operation source code Demonstration:
. Version 2
. Supports database spec
. Subroutine _ button 1 _ clicked
. Local variable a, integer type, demonstrate the usage of the Variable
. Local variable B, text type
'Integer variable initial value is 0
A = 1
A = a + 1
A = a + 1
B = "I"
B = B + "love"
B = B + "easy language"
A = a + to INTEGER (B)
Debug output ()
Address: http://www.jinqiuxin.cn/post/31.html