Welcome to the Sbasic language reference, the definitive guide and reference SBasic programmaning language. This language reference is aimed at all developers working with Symbian OS to create new applications.

Quick start:

What is SBasic?
How to run existing application or example?

Example projects:

Highly recomended: Many various examples that demonstate usage of SBasic can be found there...

Operators:

  +, -, *, /, %, ^, not, and or, xor

Statements:

Assign Dim Do...Loop
Exit

For...Next

Function

GoTo

If...Then...Else

Return

Select...Case

Stop

Sub

While...End While

Console Input/Output procedures:

Cls ConsoleBackground

ConsoleTextColor

Input Print

Misc functions and procedures:

Delay Rgb ReadKey
CtrlModifier ShiftModifier FuncModifier

File input/output

MainDir FileExists PathExists
EnsurePathExists DeleteFile OpenFile
CreateFile CloseFile WriteFile
ReadFile IsEof RewindFile

Date/time functions:

IsDateTime Now Year
Month Day Hour
Minute Second Microsecond
DayNoInMonth DayNoInWeek DayNoInYear
DaysInMonth WeekNoInYear RoundUpToNextMinute
MakeDateTime DateTimeToString

Graphics commands:

StartBufferDraw EndBufferDraw LoadPicture
UnloadPicture DrawPicture DrawPictureMasked
DrawPicturePart DrawPictureAlpha DrawPictureAlphaMasked
UseFont DrawText DrawTextVertical
DrawTextInRect DrawTextVerticalInRect TextCount
TextWidthInPixels SetPenColor SetBrushColor
SetBrushTransparent ClearRect DrawRect
DrawRoundRect DrawLine DrawCircle
DrawEllipse DrawArc DrawPie
DrawPixel GetPixel CopyRect

Math functions and constants:

Abs ACos ASin
aTan

Cos

DtoR

Exp

Frac

IsFinite

IsInfinite

IsNaN

IsZero

Int

Ln

Log

Log2

Pi

Randomize

Round

Rnd

RtoD

Sign

Sin

Sqr

Tan

UI functions and procedures:

InfoBox MessageBox

QueryBox

*Strings functions:

Length GetChar



Copyright (c) 2000-2006 by Smartphoneware. All rights reserved.