Lab Session: Saving data into SQLite

From NSB App Studio
Revision as of 06:24, 7 January 2014 by Admin (talk | contribs) (4 revisions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In this lab you will modify your app so you can save historical weather data in SQLite.

Student Outline

  1. Open LabSqlite.nsx
  2. Update your initialization code in Sub Main to create a table in the database, if it doesn't exist already.
  3. Update your btnSave click event to INSERT records into the table you created in the first step.
  4. Update your onshow event for frmSaves so it SELECTs the entries in an array that's used to populate the list.
  5. Modify your click event for lstSaves to use the array you populated in the previous step.