Lab Session: Hello World

From NSB App Studio
Revision as of 04:33, 16 December 2013 by Ghenne (talk | contribs)
Jump to navigation Jump to search

In this lab you will create a simple "Hello, world" style app.

Student Outline

  1. Start a new project.
  2. Add a TextArea and a Button to Form1.
  3. Paste the following text into the value property of the TextArea:
    Here is a simple Hello World app. Hit F5 in AppStudio to run it!
  4. Select Button1_onclick() from the click pulldown of Button1.
  5. Paste the following code into the function in the code window:
    NSB.MsgBox "Thanks for clicking!"

Run it locally

  1. Press F5 to run the program.
  2. Does it work properly?
  3. Save it as HelloWorld

Run it from the website

  1. Go into Preferences and set as above.
  2. Put your Folder# number into path.
  3. Use "training" as the password.
  4. Deploy
  5. On your desktop browser, load http://www.nsbasic.com/ksa/{your folder#}/HelloWorld
  6. It should run.
  7. Now, on your device, load the same URL.
  8. It should run there too!

Save it to Home Screen