I have my application successfully creating a storage folder and sqlite database, as well as the necessary table. I am now trying to enter data from the user into the table. I have a variable CNStorageLocation that holds a path selected by the user. I am checking to make sure the variable actually has the path and it does...but my INSERT statement must have something wrong with it, because the path is never actually inserted into my table.
Here's the code.
Code: Select all
# add the user entered storeage location from Settings into the main database
on addMainLocToDB
put getDBaseID() into tDBaseID
answer "Selected Storage Location for main DB is " & CNStorageLocation
put "INSERT into main_store_path (main_path) VALUES (CNStorageLocation)" into tSQL
revExecuteSQL tDBaseID, tSQL
end addMainLocToDB
I don't get any errors when I run this, and when I just put the SQL into a sqlite application (replacing the variable with a path) it successfully adds the path to the table.
Any help is greatly appreciated.