Lab Session: Hello World: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Line 5: Line 5:
# Start a new project.
# Start a new project.
# Add a TextArea and a Button to Form1.
# Add a TextArea and a Button to Form1.
# Paste the following text into the ''value'' property of the TextArea: <pre>Here is a simple Hello World app. Hit F5 in AppStudio to run it in your local browser.</pre>
# Paste the following text into the ''value'' property of the TextArea:  
<pre>Here is a simple Hello World app. Hit F5 in AppStudio to run it!</pre>
# Select ''Button1_onclick()'' from the ''click'' pulldown of Button1.
# Select ''Button1_onclick()'' from the ''click'' pulldown of Button1.
# Paste the following code into the function in the code window: <pre>NSB.MsgBox "Thanks for clicking!"</pre>
# Paste the following code into the function in the code window: <pre>NSB.MsgBox "Thanks for clicking!"</pre>

Revision as of 12:01, 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!
  1. Select Button1_onclick() from the click pulldown of Button1.
  2. Paste the following code into the function in the code window:
    NSB.MsgBox "Thanks for clicking!"
  3. Press F5 to run the program.
  4. Does it work properly?
  5. Save it, with your own program name.
  6. Go into Preferences and set as follows:

  1. Use "training" as the password.
  2. Deploy
  3. Load http://www.nsbasic.com/ksa/{your program name}
  4. It should run on your device!