Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3677

I've tried writing to SQlite databases in Ventura

$
0
0

I have an app that I can compile in Catalina. I use a sqlite database. Reading to it is easy… Writing seems to have no affect.
I can communicate with my online database, read and write to that. The local database connects, but whenever I try to edit it, the changes don’t work… I tried lots of things. I wrote the program on the 2019r1 version… In catalina it writes to the sqlite database just fine. I take the same version to Ventura and writing doesn’t work… I compiled the software for 2024r1.1 same problem. here’s my code (all the folder items are pointing to the correct locations).

GraphicBD= New SQLiteDatabase
GraphicBD.DatabaseFile=specialfolder.ApplicationData.child("Guitar SightReader Toolbox").child("BG").child("Dependants.sqlite")
GraphicBD.EncryptionKey="140ljmdf5dc"
If GraphicBD.Connect() then
end if
ol= db.SQLSelect("SELECT * FROM wp_gsi_licenses WHERE uid + "+str(ll)+" and license_serial='"+hashcode+"'")
if ol.Field("status").StringValue="1" and ol<>nil  then
  msgbox ("No problem!  This computer is already activated!  Please restart Guitar SightReader Toolbox for registration to be enabled.")
  go_forward=False
  Data_info.text=""
  rs = GraphicBD.SQLSelect("select * from Identify where PersonID='1'")
  rs.Edit
  rs.field("Enabled").StringValue="True"
  rs.Field("Email").StringValue =TextField1.text.Trim
  rs.Field("Hardware").StringValue =  Hashcode
  rs.Field("Name").StringValue =  TextField2.text.trim
  rs.Update
  GraphicBD.Commit

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 3677

Trending Articles