|
Sub Cls
Clears console screen
|
|
Sub ConsoleBackground(colour)
Set console background colour
Where colour is required. Target colour.
Example:
ConsoleBackground Rgb(100,0,0) ' set console background to red colour
|
Sub ConsoleTextColor(colour)
Set console text colour
Where colour is required. Target text colour.
Example:
ConsoleTextColor Rgb(100,0,0) ' set console text colour to red colour
Print "Hello world" ' print Hello world in red colour
ConsoleTextColor Rgb(100,100,100) ' set console text colour to grey colour
Print "The end!" ' print The end in Grey colour
input
|
|
Input [Label,] [Var_name]
Input values using console window
Where:
Label - Optional. String constant. String constant indicated before inputing variables. Cannot be variable or expression.
Var_name - Optional. Variable name to input values to. If omitted inputed value is not stored anywhere.
Remark:
If var_name was never declared before Input command automatically
declares it.
Example:
Print
Print "Hello world!"
Print
Input "Input x: ", x
Input "Input y: ", y
Print
Print "x = ", x, " y = ", y, "x+y = ", x+y
Print "Result = ", sin(x) / cos(y)
|
Print [ expressions_list ]
Outputs information to consol window
Where expressions_list is optional. Single expression or
list of expressions separated by coma or semicolon
expression_list can be fully skipped, in this case print
command will print empty line only
Example:
Print
Print "Hello world!"
Print
Input "Input x: ", x
Input "Input y: ", y
Print
Print "x = ", x, " y = ", y, "x+y = ", x+y
Print "Result = ", sin(x) / cos(y)
|
Copyright (c) 2000-2006 by Smartphoneware. All rights reserved.