Page 186 - The Ultimate Palm Robot
P. 186

Color profile: Generic CMYK printer profile
           Composite  Default screen
                                                          Bots /The Ultimate Palm Robot/ Mukhar & Johnson / 222880-6 / Chapter 7






                                                  Chapter 7 Essential Robot Programming Strategies   169



                                    you can write, compile, run, and debug your code without needing to switch
                                    between four different applications (editor, compiler, runtime, and debugger).
                                    Editing and compiling is done with the NS Basic application; running and de-
                                    bugging occurs in a Palm OS emulator (POSE). Although the two are separate
                                    applications, NS Basic is integrated with the emulator so that Palm applica-
                                    tions can be automatically downloaded to the POSE and launched by NS Basic.
                                    The web site for NS Basic is www.nsbasic.com.
                                      Download NS Basic from the Web or from the CD-ROM and install it onto
                                    your hard drive. The installation program will place an entry in the Start
                                    menu for NS Basic. Launch the program and you are ready to start creating a
                                    project. A project refers to the forms, resources, and code that are part of a
                                    Palm application.






























                                    Hello World in NS Basic

                                    Let’s re-create the simple Hello World program from the previous section, us-
                                    ing NS Basic so you can see how to add forms, controls, and code to create a
                                    simple application. Launch NS Basic and create a new project by clicking the
                                    Open button as seen in the previous illustration. The new project will open












           P:\010Comp\Bots\880-6\ch07.vp
           Monday, May 12, 2003 4:29:23 PM
   181   182   183   184   185   186   187   188   189   190   191