About NS Basic  |  Contact  |  Site Map  |  Search  |  Register 
 

Specifications

This is a list of commands, statements, functions and other parts of NS Basic/Symbian OS. They are all
described in more detail in the NS Basic/Symbian OS Language Reference, Tech Notes and in the Handbook.

Statements

Structure

Function, Sub, End Function, End Sub, Exit Function, Exit Sub

Flow of Control

Call, Case, Case Else, Chain, Do, Do Until, Do While, End Select, Endif, Exit Do, Exit For, For, Gosub, Goto, If, Label, Next, Nextscreen, Return, Select Case, Stop

Menus

Menudraw, Menuerase, Menureset

Variables

Dim, Display, End Type, Global, Type

Drawing

Createwindow, Drawbitmap, Drawchars, Drawline, Drawrectangle, Erasewindow, Fillrectangle, Redraw, Destroywindow

Other

Beep, Cursor, Delay, Let, Msgbox, PlaySound, Setcurrentwindow, Seteventhandled, Sound

Variable Types

Integer, Float, Date, Time, String, Byte, Single, Double, Short, Database, Usertype

Functions

Math

Abs, Asc, Ceiling, Chr, Floor, Int, Mod, Rand, Rem, Round, Sign

Trigonometric

Acos, Asin, Asinh, Atan, Atan2, Atanh, Cos, Cosh, Degtoradians, Exp, Log, Log10, Pow, Power10, Sin, Sinh, Sqrt, Tan, Tanh

String Handling

Format, Instr, Lcase, Left, Proper, Right, Rightpad, Rtrim, Str, Testnum, Trim, Trunc, Ucase, Val, Leftpad, Len, Ltrim, Mid, Nooccurs

Date

Adddays, Addmonths, Addyears, Datemmddyy, Dateval, Day, Dayofweek, Dayofyear, Firstofmonth, Lastofmonth, Mmddyytodate, Month, Now, Popupdate,Subtractdays, Subtractmonths, Subtractyears, Todate, Today, Year, Yearmonth

Time

Hour, Hourmin, Hourminampm, Minute, Popuptime, Second, Timeval, Totime

Miscellaneous

Alert, GetEventType, Getkey, SysEventAvailable, SysInfo, SysTrap

Database

Dbclose, Dbcreate, Dbcreatedatabasefromresource, Dbdelete, Dberase, Dbfind, Dbget, Dbgetnorecs, Dbinsert, Dbopen, Dbposition, Dbput, Dbread, Dbreadnext, Dbreadprev, Dbreset, Dbupdate

Form Objects

Objects

Bitmap, Button, Checkbox, Field, Gadget, Grid, Label, List, Popup, Pushbutton, Repeater, Scrollbar, Selector, Shift Indicator

Object Functions and Properties

Add, Clear, Current, Hide, ID, ItemNo, ItemText, Max, MaxChars, Min, NoItems, PageSize, Redraw, Remove, Selected, SetFocus, Show, Status, Text

Libraries

BitsNBytes

AndByte, AndInteger, AndShort, Bin2Dec, CRC32, CycleShiftByte, CycleShiftInteger, CycleShiftShort, Dec2Bin, Dec2Hex, EncMD4, EncMD5, EncryptDES, EqvByte, EqvInteger, EqvShort, GetBitByte, GetBitInteger, GetBitShort, GetHiByte, GetHiWord, GetLowByte, GetLowWord, Hex2Dec, InverseBitByte, InverseBitInteger, InverseBitShort, NotByte, NotInteger, NotShort, NumBin2Dec, NumDec2Bin, NumDec2Hex, NumHex2Dec, OrByte, OrInteger, OrShort, ResetBitByte, ResetBitInteger, ResetBitShort, SetBitByte, SetBitInteger, SetBitShort, SetHiByte, SetHiWord, SetLowByte, SetLowWord, ShiftByte, ShiftInteger, ShiftShort, SignShiftByte, SignShiftInteger, SignShiftShort, Swap16, Swap32, Swap64, Version, XorByte, XorInteger, XorShort

ScreenLib

BrightnessAdjust, ColorSupported, CompileInfo, ContrastAdjust, CurrentColor, CurrentDepth, CurrentHeight, CurrentWidth, DefaultColor, DefaultDepth, DefaultHeight, DefaultWidth, DepthSupported, DrawGrayLine, DrawLine, DrawPixel, EraseLine, ErasePixel, GetPixel, GetRGBBlue, GetRGBGreen, GetRGBIndex, GetRGBRed, GetSupportedDepths, GetTableEntryIndex, GetTableEntryRGB, IndexToRGB, InvertLine, InvertPixel, PickColorIndex, PickColorRGB, RestoreScreenMode, RGBToIndex, SaveScreenMode, ScreenLock, ScreenUnlock, SetBackColor, SetColor, SetDepth, SetForeColor, SetHeight, SetTableEntryIndex, SetTableEntryRGB, SetTextColor, SetToDefaults, SetWidth, Version

StringLib

CreateString, FormatCurrency , FormatDate , FormatNumber , FormatPercent , FormatTime , InstrRev, LSet , MonthName, Replace, RSet , Space, StrReverse , Version, WeekdayName

TcpIpLib

Version, TcpOpen, TcpClose, TcpRead, TcpWrite, TcpFlush

FileLib

BeginDirEntryEnumerate , BeginVolumeEnumerate, Close, Delete, DirCreate, DirEntryEnumerate, EndDirEntryEnumerate, Export, ExportDialog, FileCreate, FileResize, FileSeekBegin, FileSeekCurrent, FileSeekEnd, FileSize, FileTell, GetAttributes, GetDateAccessed, GetDateCreated, GetDateModified, GetDefaultDirectory, GetDeviceUniqueIDStr , GetLastError, GetNextVolume, GetResource , GetVolumeLabel, GetVolumeMediaType, Import, ImportDialog, Init, IsEOF, IsVolumeHidden, IsVolumeReadOnly, Open, Read16, Read32, Read64, ReadHuge , ReadString, RegisterDefaultDirectory , Rename, ResetAttributes, SetAttributes, SetCurVolume, SetDateAccessed, SetDateCreated, SetDateModified, SetVolumeLabel, UnregisterDefaultDirectory , Version, VolumeFormat, VolumeTotalSize, VolumeUsedSize, Write16, Write32, Write64, WriteHuge, WriteString

DatabaseLib

ArchiveRecord, BeamDatabase, ClearDatabase, CompileInfo, CopyDatabase, DeleteDatabase, DeleteRecord, FindOpenDB, GetDBAttribute, GetDBCreator, GetDBType, IsRecordBusy, IsRecordDeleted, IsRecordDirty, IsRecordPrivate, KeyInsSort, KeySort, LoadDbListToDB, LoadDirToDB, MoveAllRecords, MoveRecord, NewRecord, RecordCategoryID, RecordSize, RecordUniqueID, Register, RemoveRecord, RenameDatabase, RrnByteKey, RrnDateKey, RrnDoubleKey, RrnIntegerKey, RrnShortKey, RrnSingleKey, RrnStringKey, RrnTimeKey, SendDatabase, SetDBAttribute, SetDBCreator, SetDBType, Version

DeviceInfoLib

BatteryKind, BatteryPct, BatteryVolts, CompanyID, DeviceID, GetBitValue, GetFeature, GetSerialNumber, GetSystemFeature, HALid, HotSyncUserID, HotSyncUserName, HwrMiscFlags, IsDocked, IsPluggedIn, ProcessorID, SetBitValue, SetFeature

DocLib, DocReaderLib

CompileInfo, CurrentPosition, Decode, DocVersion, Encode, GetRecordText, HeaderSpare, MaxTextRecordSize, ReadDoc, ReadDoc, Register, Register, TextRecordCount, TotalLength, Version

DictionaryLib

Clear, Count, DelKey, FreeDict, FromString, GetKeyAt, GetKeyVal, GetValAt, NewDict, SetKeyVal, ToString

SystemLib

AlarmLog, AlarmLogAlarmTime, AlarmLogCommand, AlarmLogMessage, AlarmLogResetCount, AlarmLogResetLimit, AlarmLogResetTime, ANDInt, BinToInt, BitsValue, BitValue, BrightnessAdjust, CancelAlarm, ClearAlarmLog, ColorSupported, CompileInfo, ContrastAdjust, ControlHitControl, CurrentColor, CurrentDepth, DatabaseAppInfoID, DatabaseAttributes, DatabaseBackupDate, DatabaseCardNo, DatabaseCreationDate, DatabaseCreatorID, DatabaseDataSize, DatabaseInfo, DatabaseModificationDate, DatabaseModificationNumber, DatabaseName, DatabaseNumRecords, DatabaseSortInfoID, DatabaseTotalSize, DatabaseType, DatabaseVersion, DecryptDESString, DefaultColor, DefaultDepth, DeleteDatabase, DelimitedItem, DelocalizeNumber, DepthSupported, DrawGrayLine, DrawLine, DrawPixel, DynamicHeapFree, DynamicHeapMaxChunk, DynamicHeapSize, EncryptDESString, EraseLine, ErasePixel, FieldAnyDirty, FieldClearAll, FieldCopy, FieldCut, FieldDirty, FieldGetAttributes, FieldGetFont, FieldGetInsPtPosition, FieldGetNumberOfBlankLines, FieldGetScrollPosition, FieldGetScrollValues, FieldGetSelection, FieldGetTextLength, FieldGetVisibleLines, FieldInsert, FieldPaste, FieldScrollable, FieldScrollField, FieldSetAllDirty, FieldSetAttributes, FieldSetBounds, FieldSetDirty, FieldSetFont, FieldSetInsertionPoint, FieldSetInsPtPosition, FieldSetScrollPosition, FieldSetSelection, FieldUndo, FindDatabase, FixedWidthString, FlushEvents, FontCharsInWidth, FontCharsWidth, FontCharWidth, FontGetFont, FontSelect, FontSetFont, FontWidthToOffset, FontWordWrap, FormGetAllObjectTypes, FormGetFocus, FormGetNumberOfObjects, FormGetObjectBounds, FormGetObjectPosition, FormGetObjectType, FormGetTitle, FormReplaceTitle, FormSetObjectBounds, FormSetObjectPosition, GetAlarm, GetAlarmCommand, GetAlarmMessage, GetAlarmResetLimit, GetAlarmResetTime, GetAlarmTime, GetAppPreferences, GetDatabase, GetEvent, GetNextDatabaseByTypeCreator, GetPixel, GetRGBBlue, GetRGBGreen, GetRGBIndex, GetRGBRed, GetSleepEvent, GetSleepEventTime, GetSupportedDepths, GetSysPreference, GetTableEntryIndex, GetTableEntryRGB, GetWakeEvent, GetWakeEventTime, GlobalEndPos, GlobalEndX, GlobalEndY, GlobalHeight, GlobalHour, GlobalMinute, GlobalStartPos, GlobalStartX, GlobalStartY, GlobalVersionMajor, GlobalVersionMinor, GlobalWidth, GlobalX, GlobalY, HexToInt, IncrementSystemTime, IndexToRGB, IntToBin, IntToHex, IntToString4, InvertLine, InvertPixel, KeyEventChr, KeyEventKeyCode, KeyEventModifiers, LastSync, ListGetTopItem, ListGetVisibleItems, ListInsertionSort, ListQSort, ListScrollList, ListSetTopItem, LocalizeDate, LocalizeNumber, NormalSpacedString, NumCards, NumDatabases, ObjectWithPoint, OnesComplement, ORInt, PickColorIndex, PickColorRGB, PostEvent, ProgramVersionString, ProgressPercent, ProgressPercentString, ProgressStartDialog, ProgressStopDialog, ProgressUpdateDialog, ProgressUserCancel, RandomNumber, ResetAutoOffTimer, RestoreScreenMode, RGBToIndex, SaveScreenMode, ScreenLock, ScreenUnlock, SelectOneTime, SetAlarm, SetAlarmReset, SetAppPreferences, SetAutoOffTime, SetBackColor, SetBitsValue, SetBitValue, SetColor, SetDatabaseAppInfoID, SetDatabaseAttributes, SetDatabaseBackupDate, SetDatabaseCreationDate, SetDatabaseCreatorID, SetDatabaseModificationDate, SetDatabaseModificationNumber, SetDatabaseName, SetDatabaseSortInfoID, SetDatabaseType, SetDatabaseVersion, SetDepth, SetDESKey, SetForeColor, SetSleepEvent, SetSysPreference, SetTableEntryIndex, SetTableEntryRGB, SetTextColor, SetToDefaults, SetWakeEvent, SortAddDouble, SortAddInteger, SortAddString, SortGetDouble, SortGetInteger, SortGetString, SortInit, SortInsertionSort, SortQSort, String4ToInt, StringDate, StringDateTime, StringTime, SuccessfulSync, SyncUserName, SysHandleEvent, SystemTime, SystemVersion, Version, WinRestoreBits, WinSaveBits, XORInt

Features and specifications subject to change.

© 2017 NS BASIC Corporation. All rights reserved.