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?
Tutorial or how to get started in programming on SBasic, Coming soon

Example projects:

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

User projects:

Users application sent to us can be found there... Coming soon

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

Coming soon:
EditBox InputBox

ListBox

*Strings functions:

Length GetChar

Coming soon...
LTrim RTrim InStr
Trim UCase LCase
Chr Asc
Match

System procedures and functions: Coming soon...

GetCurrentApp StartApp SwitchToApp
CloseApp

SendKeyToApp

SendStringToApp

CreateSms

CreateMms<

CreateEmail

SendSms

SendMms

SendEmail

KeepBacklightActive

*Arrays: Coming soon...

Arrays Overview
GetRank
GetUpperBound
IsArray

Additional articles: Coming soon...

Comments in code
Recursion and functions



Copyright (c) 2000-2005 by SymbianWare OHG. All rights reserved.
SymbianWare and SymbianWare logo are trademarks of SymbianWare OHG.