It looks like you're new here. If you want to get involved, click one of these buttons!
local addr = require "AddressBook" local addressBook = addr.getAddressBook() -- return the AddressBook as a table --[[ The table contains the following members id --> use this when trying to delete a record name --> The first name of the contact surname --> The lastname of the contact email --> The email address of the contact mobile, home, work, iPhone --> the different phone numbers that might be present --]] local tblRec = {fName = "Jayant", lName = "Varma", phone = "123456", email = "jayant@email.com"} addr.createAddressBookEntry(tblRec) -- creates a new record in the AddressBook (does not check for duplicates as yet) -- Need to standardize it with the field names returned from the addressBook, like name and surname addr.deleteContact(theRecID) -- delete's the record from the AddressBook -- Uses the ID as returned by the getAddressBook function above |