Easy language basics beginner Course Series 3

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.