ADDHANDLER
EventsConnects an event to a procedure with appropriate parameters.
AddHandler button.Click, AddressOf OnClick… downloads
THE LANGUAGE / VERSION 0.12
All 73 reserved words, with explanation and a syntax fragment. You cannot use these words as your own variable name. Capital letters make no difference.
73 keywords
Connects an event to a procedure with appropriate parameters.
AddHandler button.Click, AddressOf OnClickRefers to an event handler procedure.
AddHandler button.Click, AddressOf OnClickLogical AND; both conditions must be true.
If ready And enabled ThenCreates a Variant array from the specified values; also useful for type checking.
Dim values As Variant = Array(1, 2, 3)Indicates a type in a declaration or signature.
Dim name As StringLogical value: True or False.
Dim ready As Boolean = TrueCalls a procedure or method.
Call Greet()Defines a choice within Select Case. Case Else is the alternative.
Case 1Catches an error; an optional String variable receives the message.
Catch message As StringDefines a class with fields and methods.
Class CounterCollection of object references.
Dim items As New CollectionContinues with the next iteration of the indicated loop.
Continue ForDeclares a variable, object reference, or array.
Dim count As Integer = 0Starts a loop, possibly with While or Until.
Do While runningNumeric type for decimal numbers and scientific notation.
Dim value As Double = 1.2E3Cycles through the elements of a container together with For.
For Each item In itemsExecutes the alternative if previous conditions are false.
ElseTest a subsequent condition within a If block.
ElseIf score = 10 ThenEnds the program or closes a block with a second keyword.
End IfExit the indicated loop or procedure.
Exit ForThe logical value false.
ready = FalseBegins a counting loop or For Each loop.
For i = 1 To 10Declares a function with a result value.
Function Answer() As IntegerBegins a conditional block.
If score > 10 ThenIndicates which interface a class implements.
Class Counter Implements ICounterLoads another BASIC source file into the project.
Imports "COUNTER.BAS"Indicates the container to be traversed.
For Each item In itemsIndicates the base class of a class.
Class Child Inherits ParentRequests input and stores the answer in a variable.
Input "Naam"; name32-bit signed integer.
Dim value As Integer = 42Defines a contract for implementing classes.
Interface ICounterCompares object identity or used with TypeOf and Case.
If a Is b ThenTests if object references are not the same, or if a type does not match.
If a IsNot Nothing ThenOptional keyword for an assignment.
Let count = 332-bit signed integer, just like Integer.
Dim value As Long = 100000Exit a Do loop, possibly with a condition.
Loop Until doneRefers to the current object.
Me.count = 1Remainder of an integer division.
Print 10 Mod 3Approximates the implementation of the base class.
Return MyBase.Value()Creates an object; Sub New defines a constructor.
Dim form As New Window("Hallo", 320, 200)Exit a For loop.
NextInverts a logical value.
If Not ready ThenEmpty object reference.
If value Is Nothing ThenGeneral type for an object reference.
Dim value As ObjectLogical OR; at least one condition must be true.
If ready Or enabled ThenMakes a method overridable in a derived class.
Public Overridable Function Value() As IntegerOverrides an overridable method of the base class.
Public Overrides Function Value() As IntegerSaves existing array values at ReDim.
ReDim Preserve values(20)Writes values to the output window.
Print "Hallo Atari"Restricts a member to its own class.
Private count As IntegerMakes a member accessible within the class and derived classes.
Protected count As IntegerMakes a member accessible outside the class.
Public count As IntegerResizes a dynamic, one-dimensional array.
ReDim values(10)Starts a comment line; an apostrophe is also possible.
Rem Dit is commentaarRemoves a previously added event connection.
RemoveHandler button.Click, AddressOf OnClickReturns from a procedure, with a value at a function.
Return 42Starts a selection on a value.
Select Case choiceNumerical type for decimal numbers.
Dim value As Single = 1.5Sets the step size of a For loop.
For i = 10 To 1 Step -1Suspends execution for the debugger.
StopText; current maximum string length is 127 characters.
Dim name As String = "Atari"Declares a procedure with no result value.
Sub Greet()Close the condition of If or ElseIf.
If ready ThenThrows an error with its own String message.
Throw "Er ging iets mis"Indicates the end value of a For loop.
For i = 1 To 10The logical value true.
ready = TrueStarts a block in which runtime errors can be caught.
TryTogether with Is or IsNot, checks the type of a value.
If TypeOf value Is Counter ThenRepeats until the condition is true.
Do Until doneVariable that can contain values of different supported types.
Dim value As VariantExit a While loop.
WendRepeats as long as the condition is true.
While count < 10Logical exclusive OR.
Print True Xor FalseNo keywords found. Try another word or choose all categories.
The names below are built-in functions and classes, not reserved keywords. The manuals describe their parameters and behavior.
Abs, Sgn, Sqr, Sin, Cos, Tan, Atn, Exp, Log, CInt, CLng, CSng, CDbl, Int, Fix and Val. CInt and CLng round half values to the nearest even integer.
/ divides with decimals; \ does integer division; ^ raises to a power.
CStr, Len, Left, Right, Mid, UCase and LCase. LBound and UBound provide array boundaries. Arrays are one-dimensional; dynamic arrays can grow with ReDim.
Window, Button, Label, TextBox, CheckBox, RadioButton (also OptionButton), ListBox, ComboBox, Application, MessageBox, MsgBox and Midi.
Tell us what you make, ask a question or share your experience with the development environments.
The count starts with this update; previous downloads are unknown. ZIP packages and ST images count, not unique individuals.
Loading comments…