Visara Master Console Center Scripting Guide Uživatelský manuál Strana 136

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 262
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 135
Chapter 5 Script Commands
Scripting Guide 136
INC
Syntax:
INC %Variable
Description:
Adds one to a numeric variable’s value.
Action:
The value in the specified variable is increased by one.
Parameters:
%Variable. Numeric variable. Name of the integer variable to
increment.
Returns:
N/A
Notes:
The INC() command is a shortcut for adding one to itself. The
following two statements are equivalent, but the INC() command
executes much faster:
INC %Var
%Var := %Var + 1
Example:
*START:
%Num := 0 //init to 0
*COUNTING:
REPEAT
//display value to filtered msgs window
LOG( LOG_FLT, “COUNTER=” + STR( %Num))
INC %Num //add 1
UNTIL %Num > 9
See Also:
DEC, SET
Zobrazit stránku 135
1 2 ... 131 132 133 134 135 136 137 138 139 140 141 ... 261 262

Komentáře k této Příručce

Žádné komentáře