New account
WDBasic
From Wolfgang Draxler @2009
Version: 0.6 Beta

Variables

Variable can be declare 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


Statement: Bye

Exit the WDBadic-Program, and returned to the Operating System.

Statement: Break <Line>

Set a breakpoint on the given line.

Statement: Continue

The broken program will be continue

Statement: Delete

Delete a file from the operating system

Statement: End

The running program will be ended. The program cannot continue. The values of the variables are not cleared.

Statement: For <variable>=<expr> to <expr> step <expr>

Loops from the start value to the end value the next statements to the Statement “Next”.

Statement: Goto <line>

The program goes to the specified line.

Statement: Gosub <line>

The program goes to the specified sub.

Statement: Help

Show this help.

Statement: If [expr] then [statement]

The expression/condition is 0 then the statement after “then” will be exectute.

Statement: Info

Show any information about WDBasic.

Statement: Input <variable>[, < variable >[,…]]

Reads one or more values and write it into the variable(s) from the user.

Statement: [Let] <variable>=<expr>

Calculate the expression and write the value into the variable.

The keyword “let” is optional

Statement: List [<Startline> [, <Endline>]]

List the program between the given lines. By the default all lines are displayed

Statement: Load

Load a program from the operating system with the extension “.bas”

Statement: New

Clear the programs and the variable. The program is stopped

Statement: Next

Look the Statement “For”.

Statement: On <integer> Goto line [, line [, line [, ..]]]

The program jumps to the specified line.

Statement: Pause [seconds]

Without the secondexpress the program wait until a key was pressed.

With seconds the program will wait the seconds.

Statement: Print <expr>[, < expr >[,…]] [;]

Prints the expressions

Statement: Randomize

Start the Random

Look the function “Rnd”

Statement: Rem <text>

The entire text will be ignored

Statement: Return

See Statement “Gosub”.

Statement: Run [Line]

The program started on the given line. The default is the first line of the program.

Statement: Save

Save the program into the operation system with the extension “.bas”

Statement: Stop

The running program are stopped and can be continued with the statement “Continue”. The values of the variables are not cleared.

Statement: Trace

When the program start with “run” the executed lines are displayed.

Statement: Unbreak <Line>

Cleared the breakpoint on the given lines

Statement: Untrace

Stop the tracing.


Functions


Function: Abs(<Value>)

Parameter: Value … Number

Return: Number

Return the absolute Value from the parameter value.

Function: ACos(<Value>)

Parameter: Value … Number

Return: Number

Return the arcus cosine from the parameter value.

Function: ACosH(<Value>)

Parameter: Value … Number

Return: Number

Return the arcus hyp cosine from the parameter value.

Function: Asc


Function: ASin(<Value>)

Parameter: Value … Number

Return: Number

Return the arcus sinus from the parameter value.

Function: ASinH(<Value>)

Parameter: Value … Number

Return: Number

Return the arcus hyp sinus from the parameter value.

Function: ATan(<Value>)

Parameter: Value … Number

Return: Number

Return the arcus tangents from the parameter value.

Function: ATanH(<Value>)

Parameter: Value … Number

Return: Number

Return the arcus hyp tangents from the parameter value.

Function: Chr$


Function: Cos(<Value>)


Parameter: Value … Number

Return: Number

Return the cosine from the parameter value.

Function: CosH(<Value>)

Parameter: Value … Number

Return: Number

Return the hyp cosine from the parameter value.

Function: Exp


Function: Frac


Function: Int


Function: Left$


Function: Len


Function: Ln


Function: Log


Function: Mid$


Function: Pi


Function: Pos


Function: Right$


Function: Rnd


Function: Round


Function: Sgn


Function: Sin(<Value>)

Parameter: Value … Number

Return: Number

Return the sinus from the parameter value.

Function: Sinh(<Value>)

Parameter: Value … Number

Return: Number

Return the hyp sinus from the parameter value.

Function: Sqr


Function: Str$


Function: Tan(<Value>)

Parameter: Value … Number

Return: Number

Return the tangents from the parameter value.

Function: Tanh(<Value>)

Parameter: Value … Number

Return: Number

Return the hyp tangents from the parameter value.

Function: Val

Last Editor: ARoederer :: Owner: ARoederer