New account
Most recent edit on 2011-08-02 10:28:13 by ARoederer Version 0.10

Additions:
Version: 0.10
(c) 2009 - 2011 by Wolfgang Draxler


Deletions:
Version: 0.8
(c) 2009 - 2010 by Wolfgang Draxler



Edited on 2010-01-30 21:50:15 by ARoederer Version 0.8 (Jan. 28. 2010)

Additions:
LoadBin

ScrCurPos (y,x)



Deletions:
LoadBin?

ScrCurPos? (y,x)

Description: Return the arcus hyp cosine from the parameter value.



Edited on 2010-01-30 21:46:57 by ARoederer

Additions:

WDBasic Online-Help

Version: 0.8
(c) 2009 - 2010 by Wolfgang Draxler
Variables can be declared from "a" to "z"
Strings are denoting by "$"
Basic math.:+, -, *, /, mod, and, or, xor

Bye

Break <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-Filename
See also:
FileDelete
FileMove

FileDelete "<filename>"

Delete the Filename
See also:
FileCopy
FileMove

FileMove "<src-filename>" "<dest-filename>"

Move the Src-Filename to the Dest-Filename
See 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>

See also:
On...Goto
Gosub

Gosub <line>

See also:
Goto
On...Goto

Help

If [expr] then [statement]

The expression/condition is 0 then the statement after "then" will be exectuted.

Info

Input <variable>[, < variable >[,...]]

[Let] <variable>=<expr>

The keyword "let" is optional

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

Load "<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 [, ...]]]

See also:
Goto
Gosub

Pause [seconds]

Without the second expression, the program waits until any key is pressed.

Print <expr>[, <expr>[,...]] [;]

See also:
Input

Randomize

See also:
Rnd

Rem <text>

Return

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-Window

ScrColor (<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-cursor

Trace

When the program is started, all executed lines are displayed.
See also:
UnTrace

Unbreak <Line>

Delete the breakpoint on the given lines
See also:
Continue
Stop
UnBreak

Untrace

See also:
Trace

Functions

Abs(<Value>)

Parameter: Value ... Number

ACos(<Value>)

Parameter: Value ... Number

ACosH(<Value>)

Parameter: Value ... Number

Asc

Parameter: Value ... String
Description:

ASin(<Value>)

Description: Return the arcus hyp cosine from the parameter value.
Parameter: Value ... Number

ASinH(<Value>)

Parameter: Value ... Number

ATan(<Value>)

Parameter: Value ... Number

ATanH(<Value>)

Parameter: Value ... Number

Chr$

Parameter: Value ... Number
Return: String

Cos(<Value>)

Parameter: Value ... Number

CosH(<Value>)

Parameter: Value ... Number

Exp

Parameter:

Frac

Parameter:

Int

Parameter:

Left$

Parameter:
Return: String

Len

Get the of String
Parameter: Value ... String

Ln

Parameter:

Log

Parameter:

Mid$

Parameter:
Return: String

Pi

Get the PI-Constant
Parameter: None
Return: 3.141592654

Pos

Parameter:

Right$(<Value>)

Parameter:
Return: String

Rnd

Get a random number
Parameter: No

Round

Parameter:

ScrCurPosX

Get the X-Position of the Text-Cursor.
Parameter: None

ScrCurPosY

Get the Y-Position of the Text-Cursor.
Parameter: None

Sgn(<Value>)

Parameter:

Sin(<Value>)

Parameter: Value ... Number

Sinh(<Value>)

Parameter: Value ... Number

Sqr(<Value>)

Parameter:
Return:
Description:

Str$(<Value>)

Convert the number a string
Parameter: Value ... Number
Return: String

Tan(<Value>)

Parameter: Value ... Number

TanH(<Value>)

Parameter: Value ... Number

Val

Return the number value of the string
Parameter: String
Return: Number


Deletions:
WDBasic
From Wolfgang Draxler @2009
Version: 0.6 Beta
Variable can be declare from “a” to “z”
Strings are denoting by “$”
Basic math.: +, -, *, /, mod, and, or, xor

Statement: Bye

Statement: Break <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>

Statement: Gosub <line>

Statement: Help

Statement: If [expr] then [statement]

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

Statement: Info

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

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

The keyword “let” is optional

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

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 [, ..]]]

Statement: Pause [seconds]

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

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

Statement: Randomize

Look the function “Rnd”

Statement: Rem <text>

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


Functions

Function: Abs(<Value>)

Parameter: Value … Number

Function: ACos(<Value>)

Parameter: Value … Number

Function: ACosH(<Value>)

Parameter: Value … Number

Function: Asc

Function: ASin(<Value>)

Parameter: Value … Number
Return the arcus sinus from the parameter value.

Function: ASinH(<Value>)

Parameter: Value … Number

Function: ATan(<Value>)

Parameter: Value … Number

Function: ATanH(<Value>)

Parameter: Value … Number

Function: Chr$

Function: Cos(<Value>)

Parameter: Value … Number

Function: CosH(<Value>)

Parameter: Value … Number

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

Function: Sinh(<Value>)

Parameter: Value … Number

Function: Sqr

Function: Str$

Function: Tan(<Value>)

Parameter: Value … Number

Function: Tanh(<Value>)

Parameter: Value … Number

Function: Val




Edited on 2009-11-11 23:13:48 by ARoederer

Additions:
Version: 0.6 Beta

Deletions:
Version: 0.4 Beta


Edited on 2009-10-11 23:39:28 by ARoederer

Additions:

Function: ASinH(<Value>)



Deletions:

Function: ASinH?(<Value>)




Edited on 2009-10-11 23:36:43 by ARoederer

Additions:
See Statement “Gosub”.

Deletions:
See Statement “GoSub?”.


Edited on 2009-10-11 23:35:57 by ARoederer

Additions:

Function: ACosH(<Value>)

Function: ATanH(<Value>)



Deletions:

Function: ACosH?(<Value>)

Function: ATanH?(<Value>)




Edited on 2009-10-11 23:34:59 by ARoederer

Additions:

Function: CosH(<Value>)



Deletions:

Function: CosH?(<Value>)




Oldest known version of this page was edited on 2009-10-11 23:34:20 by ARoederer [ Neu erstellt ]

WDBasic From Wolfgang Draxler @2009
Version: 0.4 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 Revision :
Last Editor :
Owner :