Operations

Back to Script Items

       See Also: Screen Events, Field Events


Operations are activities that change the value of a Variable or Global Variable


In the Script Editor, click Add, Operations (or double click on an existing one)


You will see the Script Operation dialog:


Using a script operation you can



NOTE: Value 2 is not used for this operation


    1. Select "Perform the following: Assign directly from Value 1"

               

    1. Configure the meaning of Value1

               

               Select Value 1's type, fill in the constant value if not a variable, and hit OK


    1. This commands the script to copy Value1 into the variable specified by "Store the result in variable".  Select OK

               

               


For instance, iyou wanted to set

X = Y

You could think of this operation as

       {  X, Store the result in variable  }     =     { Y,   Value 1  }

       






    1. Select the mathmatical operation you wish to perform from "Perform the following"

               

                i.e. (+) , (-), (*), (/), or calculate modulo (remainder)


    1. Take the contents of Value1 and use as operand 1

                               

               Select Value 1's type, fill in the constant value if not a variable, and hit OK


    1. Take the contents of Value 2 and use as operand 2

               

               Select Value 2's type, fill in the constant value if not a variable, and hit OK


    1. This commands the script to perform the operation and store it into the variable specified by "Store the result in variable". Select OK

               

               

For instance, you wanted to set:

  X = Y + Z

You could think of this operation as: 

{    X, Store the result in variable   }       =    

               {    Y, Value 1 (the number 2)   }    

               {  +, "Perform the following", "Add to"  }  

               {    Z, Value 2 (the number 2)   }

       



Back to Script Items

       See Also: Using the Script Editor, Screen Events, Field Events


Copyright © 2007, American Microsystems, Ltd.