Lab Session: Fix a program with syntax errors and make some enhancements

From NSB App Studio
Revision as of 09:07, 12 December 2013 by James (talk | contribs)
Jump to navigation Jump to search

In this lab you will fix some problems in the code for your app and add some functionality.

Student Outline

  1. Open LabFix.nsx
  2. Open the code view for frmMain. Several errors appear. Resolve them.
  3. Run the program in the browser. Several errors appear in the debugger. Resolve these errors.
  4. Link the forms together using the ChangeForm properties:
    • On frmMain:
      • Link hdrMain's buttons to frmAbout and frmSaves.
      • Link btnCompass to frmCompass.
    • On frmAbout, link hdrAbout's button to frmMain.
    • On frmSaves, link hdrSaves' button to frmMain.
    • On frmSavedData, link hdrSavedData's button to frmSaves.
    • On frmCompass, link hdrCompass' button to frmMain.
  5. Add a click event for frmMain's btnSave and have it display a MsgBox when clicked.
  6. Add a few random entries to lstSaves in Sub Main and verify that lstSaves_onclick fires.

Files