RegistryControl.RegCtl Owner information Controls and Objects PictureBox For pictures and text NS Basic/CE 4.0 NS Basic/CE comes with a selection of controls. Third party Pocketoutlook.application Access Pocket Outlook data controls are also supported. Use the AddObject statement to Pocketsoap.Envelope.2 SOAP client core object Reference Card add a control to a project. Here are some of the ObjectID names Pocketsoap.HTTPTransport.2 SOAP client HTTP transport for controls that can be used with NS Basic/CE S309.PictureBox.1 Improved Picturebox S309.Timer.1 Timer control The easiest way to ADOCE.recordset Database Object S309.UserNotification.1 User Notification dialog ADOCE.recordset.3.0 Database Object - Pocket PC TabStrip Tabs across the top program Windows CE! AppLaunch.Launch File launcher TextBox Standard text input box AWaveCE.Sound Audio control Time Standard time picker Checkbox Standard checkbox TreeView Tree of Data Combobox Standard comboBox ViaXML.ViaXMLClient Web Services NB Basic/CE is a powerful BASIC development environment for ComboBoxThingo. Combobox with extended VscrollBar Vertical Scrollbar Windows CE. You can quickly and easily code for Pocket PC ComboBoxThing item capabilities Winsock TCP/IP communication 2000, Pocket PC Phone Edition, Pocket PC, Palm-size PC (CE Comm Serial communications 2.11), Handheld PC 2002, Handheld PC Pro and Handheld PC. CommandButton Standard command button Date Standard date picker Common Object Properties NS Basic/CE is a full, modern implementation of BASIC, with DataViewer.DataViewer Virtual list view (All properties do not exist in all objects.) proper subroutines, variant data types and no line numbers. Dialog Standard dialogs Alignment, BackColor, Bottom, Caption, Enabled, FontBold, Memory requirements are low and execution speed is excellent. EasyInk.InkControl Signature capture FontItalic, FontName, FontSize, FontStrikethru, FontUnderline, ’s User Interface Guidelines are adhered to. File Simple File I/O FontWeight, ForeColor, FormatLong, Height, Hwnd, You can code using NS Basic’s powerful desktop interactive FileSystem File System functions IntegralHeight, Left, ListCount, ListIndex, Max, MaxLength, Min, development environment or on the device itself. An emulator Finance Financial Functions Multiline, NewIndex, Right, Scrollbars, SelLength, SelStart, allows testing of most code on the desktop before downloading Frame Container for other objects SelText, Sorted, Style, Tabstop, Tag, Text, Top, Value, Visible, to the device. Here is how the IDE looks on a Pocket PC: Grid Spreadsheet style interface Width Hscrollbar Horizontal Scrollbar IDSSAPI.Core Core API IDSSAPI.Inet FTP communication Common Object Events IDSSAPI.Memory System memory access Each object may have events that call back to your program. IDSSAPI.Power Battery information Some common events are: IDSSAPI.WindowHelper Window helper Change, Click, DblClick, DropDown, GotFocus Image For ImageList, TreeView ImageList Show list of images IPWorks.* (22 controls) Complete set of Internet tools Common Object Methods InVision.iSignIt Signature capture Each object may have methods your program can call. Some InetThingo.InetThing HTTP communication common methods are: Label Standard label AddItem, Clear, Hide, RemoveItem, SetFocus, Show ListBox Standard listBox ListView Display Items MGCEBarsNPops.PopupMenu Popup menu MGCEBarsNPops.Progress Windows CE progress bars MGCEBarsNPops.Scrollbar Windows CE scrollbars MGCEBarsNPops.StatusBar Windows CE StatusBar MGCEBarsNPops.Trackbar Horizontal & vertical trackbars MGCEBarsNPops.VUMeter Horizontal & vertical meters MGCEListView.ListView List view MGCEMail.Mail Mail client MGCENet.IPAddress IP address control MGCENet.HTML HTML control MGCERichEdit.RichEdit Rich edit control MGCERichInk.RichInk Rich ink (scratchpad) control MGCETreeView.TreeView Tree view MGCEWin32.API Win32 API The desktop development environment will be familiar to MGCEWin32.Tray System tray access anyone who has used VB. When you run your program on the MGCEWin32.Registry Windows CE registry access desktop, it will automatically ActiveSync to your device and run, MGCEWin32.Timer Regular interval events for fast, productive development. MGCEWin32.RAS remote access API NSBasic.DialogX.1 Custom dialog boxes Visit us at http://www.nsbasic.com. NS BASIC Corporation has been making development tools for NSBasic.Phone.1 Phone Edition functions You can send questions to us at [email protected]. handheld devices since 1993. Close to 20,000 developers use OptionButton Radio style button NS Basic products worldwide to create apps for enterprise, Output Main runtime background © 2003 NS Basic Corporation. Specifications are subject to professional and personal applications. change and improvement. NSBVersion ‘returns NS Basic’s version Statements Functions Oct(number) NS Basic/CE features a powerful, easy to use syntax that will be Abs(number) Replace(target, find, source[, strt[, count[, comp]]]) familiar to VB and VBScript , with extensions to Array(list) Right(string, length) RightB() is a bytewise make use of Windows CE features. Asc(string) Rnd[(number)] Atn(number) Round(number[, fractionaldigits]) AddObject objectID, [Name[,x,y,width, height]] CBool(exp) RTrim(string) Break [prompt[,statements]] ‘For debugging CByte(exp) Second(time) Bye CCur(exp) Sgn(number) Call procedurename[(arglist…)] ‘"Call" is optional. CDate(exp) Sin(number) Chain path, reset ‘path from root, reset boolean CDbl(exp) Space(number) Const name=exp ‘Can be prefaced Public, Private Chr(number) Split(string[, delimiter[, count[, compare]]]) Dim nameA[()], nameB…, nameC…, CInt(exp) Sqr(number) Do [{While | Until} ] CLng(exp) StrComp(string1,string2[, compare]) Loop [{While | Until} ] Cos(number) String(number, character) Erase arrays ‘recover memory from array CSng(exp) StrReverse(string) For counter=start To end[Step step] CStr(exp) Tan(number) CurrentPath ‘returns current path Time Next Date TimeSerial(hour, minute, second) For Each element In collection DateAdd(interval, number, date) TimeValue(time) DateDiff(interval,d1,day2[,1stdayofwk[, 1stwkofyr]]) Trim(string) Next DatePart(interval, day[, 1stdayofwk[, 1stwkofyr]]) TypeName(variable) Function procedureName[(arglist)] DateSerial(year, month, day) UBound(array[, dimension]) DateValue(date) UCase(string) End Function ‘Can be prefaced Public, Private Day(date) VarType(variable) If condition Then [Else] Eval(string) Weekday(date[, firstdayofweek]) If condition Then Execute(string) WeekdayName(number[, abbrev[, 1stdayofwk]) Exp(number) Year(date) [Elseif condition Then Filter(stringarray, value[, include[, compare]]) []] parensfornegative[, groupdigits]]]]) Color vbBlack, vbRed, vbGreen, vbYellow, vbBlue, End If FormatDateTime(date[, formatname]) vbMagenta, vbCyan, vbWhite KeyPreview =exp ‘exp is boolean FormatNumber(exp[, fractionalidigits[, leadingdigit[, Comparison vbBinaryCompare, vbTextCompare KillFocus() parensfornegative[, groupdigits]]]]) Date/Time vbSunday, vbMonday, vbTuesday, On Error Resume Next FormatPercent(exp[, fractionaldigits[, vbWednesday, vbThursday, vbFriday, On Error Goto 0 leadingdigit[,parensfornegative[, groupdigits]]]]) vbSaturday, vbFirstJan1, vbFirstFourDays, Option Explicit Hex(number) vbFirstFullWeek, vbUseSystem, Print expA[, exp1[, exp2[, …]]] ‘Max of 20 expressions Hour(time) vbUseSystemDayOfWeek. Randomize [number] InputBox(prmpt[, title[, default[, x[, y]]]]) Date Format vbGeneralDate, vbLongDate, vbShortDate, ReDim [Preserve] nameA[()][, nameB… ] InStr([i, ]i, string2[, compare]) vbLongTime, vbShortTime Rem remarks ' (single quote) can also be used InStrRev(string1, string2[, start[, i]]) MsgBox DisplayOptions (add values to combine) Select Case testexp Int(number) vbOKOnly,vbOKCancel, [Case explist IsArray(exp) vbAbortRetryIgnore, vbYesNoCancel, []]… IsDate(exp) vbYesNo, vbRetryCancel, vbCritical, [Case Else IsEmpty(exp) vbQuestion, vbExclamation, vbInformation, []] IsNull(exp) vbDefaultButton1, vbDefaultButton2, End Select IsNumeric(exp) vbDefaultButton3, vbDefaultButton4, Set objectvariable={objectexp | NOTHING} IsObject(exp) vbApplicationModal, vbSystemModal SetMenu menustr[||menukey], menulist Join(stringarray[, delimiter]) MsgBox returns vbOK, vbCancel, vbAbort, vbRetry, ShellExecute verb,file[,parms] ‘"OPEN",file,parms LBound(array[, dimension]) vbIgnore, vbYes, vbNo Sleep number ‘time in milliseconds LCase(string) String vbCr, vbCrLf, vbFormFeed, vbLf, Sub procedurename[(arglist)] Left(string, length) ‘LeftB() is bytewise vbNewLine, vbNullChar, vbNullString, Len({string | variable}) ‘LenB() is bytewise vbTab, vbVerticalTab End Sub ‘Can be prefaced Public.Private Log(number) VarType vbEmpty, vbNull, vbInteger, vbLong, Sleep int ‘sleep int milleseconds LTrim(string) vbSingle, vbDouble, vbCurrency, vbDate, WaitCursor status ‘status is boolean Mid(string, start[, length]) ‘MidB() is bytewise vbString, vbObject, vbError, vbBoolean, While condition Minute(time) vbVariant, vbDataObject, vbDecimal, Month(date) vbByte, vbArray Wend MonthName(date[, abbreviate]) MsgBox(prompt[, buttons[, i]]) Now