< NS Basic/CE Specifications
NS Basic/CE 8.0 Specifications

Copyright 2009 NS BASIC Corporation


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

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, Dim, DoEvents, Erase, Execute, KillFocus, Option Explicit, Print, Randomize, ReDim, RunAppAtEvent, RunAppAtTime, SendKey, SetMenu, SetWaveVolume, ShellExecute, ShowFullScreen, ShowOKButton, Sleep, UpdateScreen, WaitCursor

Structure

Function, Sub

Variables

Const, Dim, Erase, Option, Explicit, Private, Public, 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, DateSerial, Date,Value, Day, Hour, Minute, Month, MonthName, Now, Second, Space, Time, TimeSerial Time,Value, Weekday, WeekdayName, Year

Financial

DDB, FV, IPmt., IRR, MIRR, Nper, NPV, Pmt, PPmt, PV, Rate, SLN, SYD

Formatting

FormatCurrency, FormatDateTime, FormatNumber, FormatPercent

Input/Output

InputBox, MsgBox

Other

CreateShortcut, DatePart, Eval, GetResource, PlaySound

String Handling

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

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

Other

CurrentPath, NSBVersion

 

Operators

Arithmetic

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

Boolean

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

String

Concatenation (&)

 

Standard Objects

ADOCE

Active Data Object - Database control - exchange data with desktop

CheckBox

Standard checkbox object: can be left or right text

ComboBox

Standard combobox object

Comm

Serial Communications object

CommandButton

Standard command button

Dialog

Standard Dialog boxes for open, save, etc.

Err

Error codes

File

file I/O commands

FileSystem

file system commands

Finance

Functions

Frame

A container to group objects

Grid

Grid object for spreadsheet style data display

HScrollBar

Horizontal ScrollBar

Label

Standard Label

OptionButton

Standard option button

Output

The main output object (see also PictureBox)

Picturebox

General purpose object for buttons, pictures, text and graphics

TextBox

Standard Text input box

Tributton

3 state checkbox

VScrollBar

Vertical ScrollBar

Winsock

Winsock object for internet communications

 

 

 

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