Class Cast
- Namespace
- BOOSE
- Assembly
- BOOSE.dll
Cast real values to int values.
Syntax: cast intVarrealVar
Both variables must be previously defined.
public sealed class Cast : Command, ICommand
- Inheritance
-
Cast
- Implements
- Inherited Members
Methods
CheckParameters(string[])
Derived commandas must provide a method to check that their parameters are ok and throw relevant exceptions if not.
public override void CheckParameters(string[] parameter)
Parameters
parameter
string[]
Compile()
Called when Command added to the Program
public override void Compile()
Execute()
Generic Execute() checks a command's parameter list and converts any variables and expressions to literal values Should be called (base.Execute() from derived Command classes before the derived Command uses the parameters to do its job. Derived Command should check it has the correct number of parameters and throw a CommandException if not.
public override void Execute()