Tuesday 25 October 2016

5. Start Coding

 Variable naming standards is :

[scope -prefix][datatype -prefix]_[name]

Visibility scopePrefix
Argumenta
Globalg
Instancei
Locall
Shareds

Data TypePrefix
Blobblb
Booleanb
Characterc
Dated
DateTimedt
Decimaldec
Doubledb
Integeri
Longl
Realr
Strings
Timetm


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