Lab Session: Fix a program with syntax errors and make some enhancements: Difference between revisions
Jump to navigation
Jump to search
(Created page with "In this lab you will fix some problems in the code for your app and add some functionality.") |
|||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
In this lab you will fix some problems in the code for your app and add some functionality. | In this lab you will fix some problems in the code for your app and add some functionality. | ||
== Student Outline == | |||
# Open LabFix.nsx | |||
# Run the program in the browser. Several errors appear in the [[Using the Chrome Debugger|debugger]]. Resolve these errors. | |||
# Link the forms together using the ChangeForm properties: | |||
#* On ''frmMain'': | |||
#** Link ''hdrMain's'' buttons to ''frmAbout'' and ''frmSaves''. | |||
#** Link ''btnCompass'' to ''frmCompass''. | |||
#** Link ''btnPhoto'' to ''frmPhoto''. | |||
#* 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''. | |||
#* On ''frmPhoto'', link ''hdrPhoto's'' button to ''frmMain''. | |||
# Add a click event for ''frmMain's'' ''btnSave'' and have it display a ''[[MsgBox]]'' when clicked. | |||
# Add a few random entries to ''lstSaves'' in ''Sub Main'' and verify that ''lstSaves_onclick'' fires. |
Latest revision as of 15:00, 9 April 2014
In this lab you will fix some problems in the code for your app and add some functionality.
Student Outline
- Open LabFix.nsx
- Run the program in the browser. Several errors appear in the debugger. Resolve these errors.
- Link the forms together using the ChangeForm properties:
- On frmMain:
- Link hdrMain's buttons to frmAbout and frmSaves.
- Link btnCompass to frmCompass.
- Link btnPhoto to frmPhoto.
- 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.
- On frmPhoto, link hdrPhoto's button to frmMain.
- On frmMain:
- Add a click event for frmMain's btnSave and have it display a MsgBox when clicked.
- Add a few random entries to lstSaves in Sub Main and verify that lstSaves_onclick fires.