Lab Session: Saving data into SQLite: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m 4 revisions |
||
(2 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
== Student Outline == | == Student Outline == | ||
# Open LabSqlite.nsx | |||
# Update your initialization code in ''Sub Main'' to create a table in the database, if it doesn't exist already. | # Update your initialization code in ''Sub Main'' to create a table in the database, if it doesn't exist already. | ||
# Update your ''btnSave'' click event to | # Update your ''btnSave'' click event to INSERT records into the table you created in the first step. | ||
# Update your onshow event for ''frmSaves'' so it SELECTs the entries in an array that's used to populate the list. | # Update your onshow event for ''frmSaves'' so it SELECTs the entries in an array that's used to populate the list. | ||
# Modify your click event for ''lstSaves'' to use the array you populated in the previous step. | # Modify your click event for ''lstSaves'' to use the array you populated in the previous step. |
Latest revision as of 06:24, 7 January 2014
In this lab you will modify your app so you can save historical weather data in SQLite.
Student Outline
- Open LabSqlite.nsx
- Update your initialization code in Sub Main to create a table in the database, if it doesn't exist already.
- Update your btnSave click event to INSERT records into the table you created in the first step.
- Update your onshow event for frmSaves so it SELECTs the entries in an array that's used to populate the list.
- Modify your click event for lstSaves to use the array you populated in the previous step.