Skip to main content
Link
Menu
Expand
(external link)
Document
Search
Copy
Copied
twinBASIC Documentation
Welcome
Frequently Asked Questions
Tutorials
Arrays
CustomControls
Defining a CustomControl
Property Sheet and Object Serialization
Painting / Drawing to Your Control
Notes About the Form Designer
WebView2
Getting Started
Customize the UserDataFolder
Re-entrancy
Features
Attributes
Language Syntax
Alias Types
Data Types
Interfaces and CoClasses
Inheritance
Delegate Types
Generics
Overloading
Operators
Literals
Type Inference
Enhanced Pointer Functionality
UDT Enhancements
Loop Control
Return Syntax
Inline Variable Initialization
Handler Method Syntax
Module Organization
Comment Syntax
Project Configuration
Project Types
Compiler Options
ActiveX Registration
Standard Library
Unicode Support
File I/O
New Functions
GUI Components
Forms
Control Anchoring and Docking
Windowless Controls vs. Windowed Controls
Control Modernization
New Controls
Control Property Enhancements
UserControl Enhancements
Packages
Creating a TWINPACK Package
Importing a Package from TWINSERV
Importing a Package from a TWINPACK File
Updating a Package
Linked Packages
Advanced Features
Multithreading
Direct Assembly Insertion
Static Linking
Enhanced API Declarations
Class Features
Compiler and IDE Features
Compiler Warnings
Debugging
CodeLens
Modern IDE Features
Package Server
64bit Compilation
Fusion
Reference Section
Categories
Statements
#If, #Const
Call
Class
Close
CoClass
Const
Continue
Declare
Deftype
Dim
Do...Loop
End
Enum
Erase
Error
Event
Exit
For Each...Next
For...Next
Function
Get
GoSub ... Return
GoTo
If...Then...Else
Implements
Input
Interface
LSet
Let
Line Input
Load
Lock, Unlock
Mid =
MidB =
Module
Name
New
On Error
On...GoSub
On...GoTo, On...GoSub
Open
Option
ParamArray
Print
Private
Property
Protected
Public
Put
RSet
RaiseEvent
ReDim
Resume
Return
SavePicture
Select Case
Set
Static
Stop
Sub
Type
Unload
Unlock
While...Wend
With
Write
Procedures and Functions
Operators
And
AndAlso
Is
IsNot
Mod
Not
Or
OrElse
Compiler Constants
Attributes
Controls
Glossary
VBA Modules
(Default) Module
AllocMem
Array
ConvertIconToBitmap
CreateGUID
CreateStdPictureFromHandle
Emit
EmitAny
Eval
FreeMem
GetDeclaredMaxEnumValue
GetDeclaredMinEnumValue
GetDeclaredTypeClsid
GetDeclaredTypeEventIid
GetDeclaredTypeIid
GetDeclaredTypeProgId
GetInheritedOwner
GetMem1
GetMem2
GetMem4
GetMem8
GetMemPtr
GetShortcutTextByEnum
Input, Input$
InputB, InputB$
InterlockedCompareExchange32
InterlockedCompareExchange64
InterlockedCompareExchangePointer
InterlockedDecrement32
InterlockedExchangePointer
InterlockedIncrement32
ObjPtr
PictureToByteArray
PutMem1
PutMem2
PutMem4
PutMem8
PutMemPtr
RegisterMessage
RuntimeCreateGetMessageHook
SetThreadGlobalErrorTrap
StackArgsSize
StackOffset
Start
Stop (IGetMessageHook)
StrPtr
UnprotectedAccess
VarPtr
Width
vbaAryMove
vbaCastObj
vbaCopyBytes
vbaCopyBytesZero
vbaObjAddref
vbaObjSet
vbaObjSetAddref
vbaRefVarAry
Collection Module
Add
Clear
Count
Exists
Item
Items
KeyCompareMode
KeyCountHint
Keys
Remove
Compilation Module
CompilerVersion
CurrentComponentCLSID
CurrentComponentName
CurrentProcedureName
CurrentProjectName
CurrentSourceFile
ProcessorArchitecture
Constants Module
VbAppWinStyle
VbArchitecture
VbCalendar
VbCallType
VbCompareMethod
VbDateTimeFormat
VbDayOfWeek
VbFileAttribute
VbFirstWeekOfYear
VbIMEStatus
VbMsgBoxResult
VbMsgBoxStyle
VbStrConv
VbTriState
VbVarType
Conversion Module
CBool
CByte
CCur
CDate
CDbl
CDec
CInt
CLng
CLngLng
CLngPtr
CSng
CStr
CType
CVDate
CVErr
CVar
Error function
Fix
Hex
Int
MacID
Nz
Oct
Str
Val
ValDec
DateTime Module
Calendar
Date
DateAdd
DateDiff
DatePart
DateSerial
DateValue
Day
Hour
Minute
Month
Now
Second
Time
TimeSerial
TimeValue
Timer
Weekday
Year
ErrObject Module
Clear
Description
HelpContext
HelpFile
LastDllError
LastHresult
Number
Raise
ReturnHResult
Source
ExpressionService Module
AddCustomBinder
AddCustomBinderObject
AddStdLibraryBinder
Bind
Compile
Evaluate
FileSystem Module
ChDir
ChDrive
CurDir
Dir
EOF
FileAttr
FileCopy
FileDateTime
FileLen
FreeFile
GetAttr
Kill
LOF
Loc
MkDir
Reset
RmDir
Seek
SetAttr
Financial Module
DDB
FV
IPmt
IRR
MIRR
NPV
NPer
PPmt
PV
Pmt
Rate
SLN
SYD
Information Module
Erl
Err
IMEStatus
IsArray
IsArrayInitialized
IsDate
IsEmpty
IsError
IsMissing
IsNull
IsNumeric
IsObject
LBound
QBColor
RGB
RGBA
RGBA_A
RGB_B
RGB_G
RGB_R
TranslateColor
TypeName
UBound
VarType
Interaction Module
AppActivate
Beep
CallByDispId
CallByName
Choose
Command
CreateObject
DeleteSetting
DoEvents
Environ
GetAllSettings
GetObject
GetSetting
IIf
If
InputBox
MsgBox
Partition
RaiseEventByName
RaiseEventByName2
SaveSetting
SendKeys
Shell
Switch
Math Module
Abs
Atn
Cos
Exp
Log
Randomize
Rnd
Round
Sgn
Sin
Sqr
Tan
Strings Module
Asc
Chr
Filter
Format
FormatCurrency
FormatDateTime
FormatNumber
FormatPercent
InStr
InStrRev
Join
LCase
LTrim
Left
Len
Mid
MonthName
RTrim
Replace
Right
Space
Split
StrComp
StrConv
StrReverse
String
Trim
UCase
WeekdayName
TextEncodingConstants Module
VBRUN Modules
AmbientProperties Module
BackColor
DisplayAsDefault
DisplayName
Font
ForeColor
LocaleID
MessageReflect
Palette
RightToLeft
ScaleUnits
ShowGrabHandles
ShowHatching
SupportsMnemonics
TextAlign
UIDead
UserMode
AsyncProperty Module
AsyncType
BytesMax
BytesRead
PropertyName
Status
StatusCode
Target
Value
Constants Module
AlignConstants
AlignmentConstants
AlignmentConstantsNoCenter
AppearanceConstants
ApplicationStartConstants
AspectTypeConstants
AsyncReadConstants
AsyncStatusCodeConstants
AsyncTypeConstants
BackFillStyleConstants
BorderStyleConstants
ButtonConstants
CheckBoxConstants
ClipboardConstants
ColorConstants
ComboBoxConstants
ControlBorderStyleConstants
ControlBorderStyleConstantsCustom
ControlTypeConstants
DataBOFconstants
DataEOFConstants
DataErrorConstants
DataValidateConstants
DatabaseTypeConstants
DefaultCursorTypeConstants
DockModeConstants
DragConstants
DragModeConstants
DragOverConstants
DrawModeConstants
DrawStyleConstants
FillStyleConstants
FillStyleConstantsEx
FormArrangeConstants
FormBorderStyleConstants
FormShowConstants
FormWindowStateConstants
HitResultConstants
KeyCodeConstants
LinkModeConstants
ListBoxConstants
LoadPictureColorConstants
LoadPictureSizeConstants
LoadResConstants
LogEventTypeConstants
LogModeConstants
MenuAccelConstants
MenuControlConstants
MouseButtonConstants
MousePointerConstants
MultiSelectConstants
NegotiatePositionConstants
OLEContainerActivateConstants
OLEContainerConstants
OLEContainerDisplayTypeConstants
OLEContainerSizeModeConstants
OLEContainerTypesAllowedConstants
OLEContainerUpdateOptionsConstants
OLEDragConstants
OLEDropConstants
OLEDropEffectConstants
OldLinkModeConstants
PaletteModeConstants
ParentControlsType
PictureTypeConstants
PrinterObjectConstants
PrinterObjectConstants_ColorMode
PrinterObjectConstants_Duplex
PrinterObjectConstants_Orientation
PrinterObjectConstants_PaperBin
PrinterObjectConstants_PaperSize
PrinterObjectConstants_PrintQuality
QueryUnloadConstants
RasterOpConstants
RecordsetTypeConstants
ScaleModeConstants
ScrollBarConstants
ShapeConstants
ShiftConstants
ShortcutConstants
StartUpPositionConstants
StorageTypeContants
SystemColorConstants
VariantTypeConstants
VbAppWinStyle
VbArchitecture
VbCalendar
VbCallType
VbCompareMethod
VbDateTimeFormat
VbDayOfWeek
VbFileAttribute
VbFirstWeekOfYear
VbIMEStatus
VbMsgBoxResult
VbMsgBoxStyle
VbStrConv
VbTriState
VbVarType
VerticalAlignmentConstants
ZOrderConstants
ContainedControls Module
DataMembers Module
DataObject Module
AvailableFormats
Clear
DataObjectFiles
DataObjectFormat
DataObjectFormats
Files
GetData
GetDataByName
GetFormat
GetFormatByName
SetData
ErrorCallstack Module
ErrorContext Module
ErrorStackFrame Module
Hyperlink Module
ParentControls Module
PropertyBag Module
Documentation Development
Challenges
Self-Contained Diagnostic Tool
Create a Game
Videos
Access DevCon Videos
tB Videos
IDE
Add Ins
Global Search
Community Add Ins
Call Stack
Debug Console
Diagnostics
Editor
Find / Replace
History
Memory
Menu
File
Edit
View
Project
Format
Debug
Run
Tools
Add-Ins
Window
Help
Open Editors
Outline
Package Publishing
Project
Project Explorer
Project Settings
Properties
Splash Screen
Status Bar
Toolbar
Toolbox
Variables
Watches
Webpage
tbForm
tbReport
twinBASIC Home
Light mode
Dark mode
twinBASIC Home
Table of contents
Arrays
CustomControls
WebView2