| NS Basic/CE 7.0 Release Notes Feb 4, 2008 Copyright 2008 NS BASIC Corporation |
NS Basic/CE 7 is a major update to NS Basic/CE. It adds a variety of new features and fixes a number of bugs. Major enhancements are:
Please visit our web site for the latest version of this document. You'll see the latest installation notes and updated news.
NS Basic/CE is a commercial software product, licensed subject to the License Agreement that must be must be agreed to before installation. The Agreement also appears in the NS Basic/CE Handbook.
If you are using the Demonstration Edition
Welcome! You're running a complete copy of NS Basic/CE with just a few restrictions:NS Basic/CE Features
| Desktop IDE | Allows you to write programs on the desktop. You can then download them to your Windows CE or Pocket PC device, or the Microsoft Device Emulator, and test. The Desktop IDE can also be used to install the Device IDE and the Runtime. |
| Device IDE | Lets you write programs on your device. You can run them directly from the Device IDE. This app includes the Visual Designer. |
| Device Visual Designer | Lets you design the objects on your form, interactively. When you are done, the Visual Designer will generate the appropriate code and add it to your program. |
| Runtime | Must be present for NS Basic programs to run. It is not needed if the Device IDE is installed on the device. Unlike the Device IDE, you may distribute the runtime with your app with no charge. You can install the Runtime from the Run menu of the Desktop IDE, or directly from the file on the CD. |
| ActiveX Controls | ActiveX controls add functionality to NS Basic programs. You will find documentation and installation instructions under the Help menu for the Tech Notes and The Big Red Toolbox. You can add additional ActiveX controls to your program using the ActiveX Control Manager under the Tools menu in the IDE. |
See the sample "TwoForms" to see how to open and close forms from your program.
If you have problems during installation, see Tech Note 1 for common solutions. The hotlinks in this section work if you are reading this document from the CD. They will not work from FireFox: you will need click on the file names on your system directly.
Step 1: Install the Desktop
Step 2: Install device components
Windows Mobile and Pocket PC
This includes Windows Mobile 5 Pocket PC, Windows Mobile 5 Pocket PC Phone Edition, Pocket PC 2002, Pocket PC 2002 Phone Edition, Windows Mobile 2003, Windows Mobile 2003 Phone Edition, Windows Mobile 2003 Second Edition.
Windows CE Embedded Devices
This includes devices running Windows CE.NET 4, Window CE 5.0, and Windows Embedded CE 6.0, other than Windows Mobile, Pocket PC or SmartPhone devices.
Palm size PC
Palm-size PC devices use Windows CE 2.11. They were built 1999-2000 by a variety of manufacturers.
HPC2000, HPC Pro and HPC
These are usually clamshell-style devices with keyboards, running Windows CE 2.10 to 3.0. They were built by a variety of manufacturers from 1998-2003.
HPC users: The installers will put NS Basic/CE 2.11 on your device. Microsoft has not updated its development tools for these older devices, so we unfortunately cannot update our product. Since the HPC devices were phased out in 1998, this should not be an issue for many people.
Step 3: Set your Serial Number on the device (not in Demo)
Step 4: Install Emulator (Optional)
NS Basic/CE supports the Microsoft Device Emulator. If you would like to test programs on the desktop, you can download this separately from Microsoft. Read all about installing and using it in Tech Note 23, under the Help menu or on the net.
If you have problems during installation, see Tech Note 1. The solution is probably there.
* This link only works if this document is on the NS Basic CD and you are running Microsoft Internet Explorer. Otherwise, locate the file with the name and click on it. If you have not downloaded the file already, it may be on our website.
How to run a sample program from the Desktop
Before you can load your program to test it again, you will have to close it on the device. This isn't as obvious as it looks on a Pocket PC device. The "X" button on the top right corner is actually a minimize button, not a close button, following the rules for all Pocket PC apps.
The easiest to actually close the app is use Settings... System... Memory... Active Programs to stop it before downloading the new one. There are also freeware apps, like Magic Button, that allow you to do this from the Taskbar. See "Notes and Warnings" below for more information.
How to create and run a sample program on the device (Pocket PC)
Not in the demo. You can download and run apps you create on the desktop using the demo, however.
How to create and run a sample program on the device (Other than Pocket PC)
Not in the demo. You can download and run apps you create on the desktop using the demo, however.
A directory called BASIC Samples will also get installed in "My Handheld Computer". You can tap on these programs to start BASIC and run them.
You can develop programs using NS Basic/CE on the following platforms:
Programs written in NS Basic/CE will run on the following devices. For the full list, see Tech Note 21.
To use the NS Basic/CE Desktop IDE, you need to have the following:
What's New
7.0.5
7.0.4
7.0.3
7.0.2
7.0.1
In most cases, Execute will do as you expect. If you are using it in a subroutine, any variable or subroutine you create will only be around while you are in the subroutine. If you want the variable or subroutine to stick around after your function ends, then use ExecuteGlobal.
The difference we have found with NSExecute is that AddObject statements are able create objects that send events back to your program.
7.0.0
These controls work on Windows CE 4.0 devices and later. For older devices, use the MSCEControls (see below).
Notes and Warnings
If you add the statement ShowOKButton True at the beginning of your program, the X in the top right will change to an OK button. Tapping that will close your app.
There are also freeware apps, like TaskMgr from http://www.dotfred.net/TaskMgr.htm that make this easier by going on the taskbar.
Known Problems that are Microsoft's
DIM NSBIB
FUNCTION INPUTBOX(prompt, title, default)
IF ISEMPTY(NSBIB) THEN
ADDOBJECT "DialogX", "NSBIB_Dlg", 0, 0, 0, 0
SET NSBIB=NSBIB_Dlg
END IF
INPUTBOX = NSBIB.InputBox(prompt, title, default)
END FUNCTION 'INPUTBOX
X=InputBox("Message area". "INPUTBOX Example", "Default Text")
Documentation
Support
We're committed to delivering the best possible support. The following resources are available: