Lab Session: Hello World: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Line 10: Line 10:
# Press F5 to run the program.
# Press F5 to run the program.
# Does it work properly?
# Does it work properly?
# Save it, with your own program name.
# Save it as HelloWorld


<div class="page-break"></div>
<div class="page-break"></div>
== Run it on a device ==
== Run it on a device ==
[[File:Preferencesksa.png|480px]]
[[File:Preferencesksa.png|480px]]

Revision as of 19:06, 13 December 2013

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!"
  6. Press F5 to run the program.
  7. Does it work properly?
  8. Save it as HelloWorld

Run it on a device

  1. Go into Preferences and set as above.
  2. Put your Folder# number into path.
  3. Use "training" as the password.
  4. Deploy
  5. Load http://www.nsbasic.com/ksa/{your folder#}/HelloWorld
  6. It should run on your device!