Download Chapter 18 Macro User`s Manual
Transcript
z Macro Description 1. Constants and Variables a. Constants (1) Decimal constant (2) Hexadecimal constant (3) ASCII code (character constant) (4) Boolean: True (not zero), False (zero) b. Variables (1) Naming rules A variable must start with an alphabet and no longer than 32 characters. (2) Variable types char. Character (8 bit) variable bool Boolean( 1 bit) variable short Short integer(16 bit) variable int Double word (32 bit)variable float Floating point (32 bit) variable c. Operator (1) Assignment operator Assignment operator:= (2) Arithmetic operators Addition : + Subtraction : Multiplication : * Division : / Modulo Division: % (3) Comparison operators Less than : < Less than or equal : <= Greater than : > Greater than or equal : >= Equal : == Not equal : <> (4) Logic operators: Conditional AND : and 2