Variable naming standards is :
[scope -prefix][datatype -prefix]_[name]
and so on..
So for example for local variable of datatype string , naming should be : ls_variable name.
For autocomplete while coding, we need to activate autoscript & add shortcut key for Activate autoscript :
IF Construct
IF Expression THEN
Statement
[optional]
elseif
Statement
.
.
[optional]
else
Statement
END IF
Choose Construct
Do while loop
DO WHILE expression
statement block
LOOP
[scope -prefix][datatype -prefix]_[name]
| Visibility scope | Prefix |
| Argument | a |
| Global | g |
| Instance | i |
| Local | l |
| Shared | s |
| Data Type | Prefix |
| Blob | blb |
| Boolean | b |
| Character | c |
| Date | d |
| DateTime | dt |
| Decimal | dec |
| Double | db |
| Integer | i |
| Long | l |
| Real | r |
| String | s |
| Time | tm |
and so on..
So for example for local variable of datatype string , naming should be : ls_variable name.
For autocomplete while coding, we need to activate autoscript & add shortcut key for Activate autoscript :
Decision constructs:
IF Construct
IF Expression THEN
Statement
[optional]
elseif
Statement
.
.
[optional]
else
Statement
END IF
Choose Construct
CHOOSE CASE /*expression*/ CASE /*item*/ /*statementblock*/ CASE ELSE /*statementblock*/ END CHOOSE
Loop Constructs :
for loop
FOR varname = start TO end STEP increment
statement block
NEXT
Do while loop
DO WHILE expression
statement block
LOOP


No comments:
Post a Comment