WDBasic Online-Help
Version: 0.10(c) 2009 - 2011 by Wolfgang Draxler
Variables
Variables can be declared from "a" to "z"Numbers
Numbers has no denoted and can have digits.Strings
Strings are denoting by "$"The maximum length for a String is limited to 255 characters.
Operators
Comparision: <, >, =, <>, <=, >=Basic math.:+, -, *, /, mod, and, or, xor
Statements
Bye
Exit the WDBadic-Program, and returned to the Operating System.Break <Line>
Set a breakpoint on the given line.Continue
The broken program will be continue.See also:
Stop
Break
UnBreak?
End
The running program will be ended.The program cannot continue. The values of the variables are not cleared.
FileCopy "<src-filename>" "<dest-filename>"
Copy the Src-Filename to the Dest-FilenameSee also:
FileDelete
FileMove
FileDelete "<filename>"
Delete the FilenameSee also:
FileCopy
FileMove
FileMove "<src-filename>" "<dest-filename>"
Move the Src-Filename to the Dest-FilenameSee also:
FileCopy
FileDelete
For <variable>=<expr> to <expr> step <expr>
Loops from the start value to the end value by the next statements of the Statement "Next".See also:
Next
Goto <line>
The program goes to the specified line.See also:
On...Goto
Gosub
Gosub <line>
The program goes to the specified sub.See also:
Goto
On...Goto
Help
Show this help.If [expr] then [statement]
The expression/condition is 0 then the statement after "then" will be exectuted.Info
Show any information about WDBasic.Input <variable>[, < variable >[,...]]
Reads one or more values and write it into the variable(s) from the user.[Let] <variable>=<expr>
Calculate the expression and write the value into the variable.The keyword "let" is optional
List [<Startline> [, <Endline>]]
List the program between the given lines. By the default all lines are displayedLoad "<Filename[.bas]>"
Load a program from the operating system with the extension ".bas"See also:
Save
LoadBin "<Filename[.wdbb]>"
Load a basic-binary-program from the operating system with the extension ".wdbb"See also:
SaveBin
New
Clear the programs and the variable.Next
See also:For
On <integer> Goto line [, line [, line [, ...]]]
The program jumps to the specified line.See also:
Goto
Gosub
Pause [seconds]
Without the second expression, the program waits until any key is pressed.With seconds the program will wait the seconds.
Print <expr>[, <expr>[,...]] [;]
Prints the expressionsSee also:
Input
Randomize
Start the RandomSee also:
Rnd
Rem <text>
The entire text will be ignoredReturn
See also:
Gosub
Run [Line]
The program is started with the given line.The default is the first line of the program.
Save "<Filename[.bas]>"
Save the program into the operation system with the extension ".bas"See also:
Load
SaveBin "<Filename[.wdbb]>"
Save the basic-binary-program into the operation system with the extension ".wdbb"See also:
LoadBin
Stop
The running program is stopped. It can be continued with the statement "Continue".The values of the variables are not cleared.
See also:
Continue
Break
UnBreak
ScrClear
Clear the Screen-WindowScrColor (<FG>,<BG>)
Set the color of the text.Parameters:
FG ... Fordergroundcolor
BG ... Backgroundcolor
| Colorvalue | Color |
| 0 | black |
| 1 | blue |
| 2 | green |
| 3 | cyan |
| 4 | red |
| 5 | mangenta |
| 6 | brown |
| 7 | light gray |
| 8 | dark gray |
| 9 | light blue |
| 10 | light green |
| 11 | light cyan |
| 12 | light red |
| 13 | light magenta |
| 14 | yellow |
| 15 | white |
ScrCurPos (y,x)
Set the position of the text-cursorTrace
When the program is started, all executed lines are displayed.See also:
UnTrace
Unbreak <Line>
Delete the breakpoint on the given linesSee also:
Continue
Stop
UnBreak
Untrace
Stop the tracing.See also:
Trace
Functions
Abs(<Value>)
Return the absolute Value from the parameter value.Parameter: Value ... Number
Return: Number
ACos(<Value>)
Return the arcus cosine from the parameter value.Parameter: Value ... Number
Return: Number
ACosH(<Value>)
Return the arcus hyp cosine from the parameter value.Parameter: Value ... Number
Return: Number
Asc
Parameter: Value ... String
Return: Number
ASin(<Value>)
Return the arcus hyp cosine from the parameter value.Parameter: Value ... Number
Return: Number
ASinH(<Value>)
Return the arcus hyp sinus from the parameter value.Parameter: Value ... Number
Return: Number
ATan(<Value>)
Return the arcus tangents from the parameter value.Parameter: Value ... Number
Return: Number
ATanH(<Value>)
Return the arcus hyp tangents from the parameter value.Parameter: Value ... Number
Return: Number
Chr$
Parameter: Value ... Number
Return: String
Cos(<Value>)
Return the cosine from the parameter value.Parameter: Value ... Number
Return: Number
CosH(<Value>)
Return the hyp cosine from the parameter value.Parameter: Value ... Number
Return: Number
Exp
Parameter:
Return: Number
Frac
Parameter:
Return: Number
Int
Parameter:
Return: Number
Left$
Parameter:
Return: String
Len
Get the of StringParameter: Value ... String
Return: Number
Ln
Parameter:
Return: Number
Log
Parameter:
Return: Number
Mid$
Parameter:
Return: String
Pi
Get the PI-ConstantParameter: None
Return: 3.141592654
Pos
Parameter:
Return: Number
Right$(<Value>)
Parameter:
Return: String
Rnd
Get a random numberParameter: No
Return: Number
Round
Parameter:
Return: Number
ScrCurPosX
Get the X-Position of the Text-Cursor.Parameter: None
Return: Number
ScrCurPosY
Get the Y-Position of the Text-Cursor.Parameter: None
Return: Number
Sgn(<Value>)
Parameter:
Return: Number
Sin(<Value>)
Return the sinus from the parameter value.Parameter: Value ... Number
Return: Number
Sinh(<Value>)
Parameter: Value ... NumberReturn: Number
Return the hyp sinus from the parameter value.
Sqr(<Value>)
Parameter:Return:
Description:
Str$(<Value>)
Convert the number a stringParameter: Value ... Number
Return: String
Tan(<Value>)
Return the tangents from the parameter value.Parameter: Value ... Number
Return: Number
TanH(<Value>)
Return the hyp tangents from the parameter value.Parameter: Value ... Number
Return: Number
Val
Return the number value of the stringParameter: String
Return: Number
Last Editor: ARoederer
:: Owner: ARoederer