Specifications

February 1, 2005

 

© NS BASIC Corporation. All rights reserved.

 

This is a list of commands, statements, functions and other parts that make up NS Basic/Desktop. They are described in more detail in the NS Basic/Desktop Handbook and in the Language Reference under the NS Basic/Desktop Help Menu.

NS Basic/Desktop is a subset of Microsoft's Visual Basic. It includes all of VBScript, plus additional statements, functions and controls.

 

Statements

Error handling

On Error

Flow of control

Call, Do...Loop, Exit, For...Next, For Each...Next, If...Then...Else, Select Case, While...Wend, End, Bye

Other

AddObject, Break, DoEvents, Execute, ExecuteFile, Print, Randomize, SetMenu, ShellExecute, Sleep, UpdateScreen, WaitCursor

Structure

Function, Sub, With

Variables

Const, Dim, Erase, Option Explicit, Property Let, Property Get, Property Set, ReDim, Rem, Set

 

Functions

Arithmetic

Abs, Asc, Atn, Cos, Exp, Fix, Int, Log, Rnd, Round, Sgn, Sin, Sqr, Tan

Conversion

Cbool, Cbyte, Ccur, Cdate, CDbl, Chr, Cint, CLng, CSng, CStr, Hex, Oct

Date/Time

Date, DateAdd, DateDiff, DatePart, DateSerial, Date,Value, Day, Hour, Minute, Month, MonthName, Now, Second, Space, Time, TimeSerial Time,Value, Weekday, WeekdayName, Year

Formatting

FormatCurrency, FormatDateTime, FormatNumber, FormatPercent

Input/Output

InputBox, MsgBox

Other

CreateObject, Eval, GetCommandLine, GetLocale, GetObject, GetRef, LoadPicture, PlaySound

String Handling

Escape, Filter, InStr, InStrRev, Join, Lcase, Left, Len, Ltrim, Mid, Replace, Right, Rtrim, Split, StrComp, StrReverse, String, Trim, UCase, Unescape

Variable Handling

Array, IsArray, IsDate, IsEmpty, IsNull, IsNumeric, IsObject, Lbound, TypeName, Ubound, VarType

 

Constants

Color

vbBlack, vbRed, vbGreen, vbYellow, vbBlue, vbMagenta, vbCyan, vbWhite

Comparison

vbBinaryCompare, vbTextCompare

Date/Time

vbSunday, vbMonday, vbTuesday, vbWednesday, vbThursday, vbFriday, vbSaturday, vbFirstJan1, vbFirstFourDays, vbFirstFullWeek, vbUseSystem, vbUseSystemDayOfWeek

Date Format

vbGeneralDate, vbLongDate, vbShortDate, vbLongTime, vbShortTime

MsgBox

display: vbOKOnly,vbOKCancel, vbAbortRetryIgnore, vbYesNoCancel, vbYesNo, vbRetryCancel, vbCritical, vbQuestion, vbExclamation, vbInformation, vbDefaultButton1, vbDefaultButton2, vbDefaultButton3, vbDefaultButton4, vbApplicationModal, vbSystemModal

return: vbOK, vbCancel, vbAbort, vbRetry, vbIgnore, vbYes, vbNo

String

vbCr, vbCrLf, vbFormFeed, vbLf, vbNewLine, vbNullChar, vbNullString, vbTab, vbVerticalTab

VarType

vbEmpty, vbNull, vbInteger, vbLong, vbSingle, vbDouble, vbCurrency, vbDate, vbString, vbObject, vbError, vbBoolean, vbVariant, vbDataObject, vbDecimal, vbByte, vbArray

Global

CurrentPath, NSBVersion, AppComments, AppCompanyName, AppFileDescription, AppLegalCopyright, AppLegalTrademarks, AppMajor, AppMinor, AppRevision, AppTitle,, AppEXEName, AppPath, ScriptEngineMajorVersion, ScriptEngineMinorVersion, ScriptEngineBuildVersion

Values

True, False, Null, Empty, Nothing

 

Operators

Arithmetic

Addition (+), Division (/), Exponentiation (^), Integer Division (\), Mod, Muliplication (*), Negation (-), Subtraction (-)

Boolean

And, Eqv, Imp, Not, Or, Is, =, <, >, Xor

String

Concatenation (&)

 

Standard Objects

CheckBox

Standard checkbox object: can be left or right text

ComboBox

Standard combobox object

CommandButton

Standard command button

Err

Error codes

Frame

A container to group objects

HScrollBar

Horizontal ScrollBar

Label

Standard Label

OptionButton

Standard option button

Output

The main output object

PictureBox

An object to display pictures and graphics.

TextBox

Standard Text input box

Tributton

3 state checkbox

VScrollBar

Vertical ScrollBar

 

Variable Types

Variant

Empty, Null, Integer, Long, Single, Double, Currency, Date, String, Object, Error, Boolean, Variant, Data Object, Byte, Array

 

 

 

© NS BASIC Corporation. All rights reserved.
Features and specifications subject to change.