Hi
I have been using Realbasic for a while but have never really felt comfortable with it.
I downloaded and am trying the latest version of KBasic.
My problem is regarding MySQL databases ( built in database engine) and records.
In realbasic the following code works, but I am struggling to find clear documentation
on how to code this in KBasic.
newrecord = New DatabaseRecord
newrecord.Column("name")="Name"
newinvoice.column("address")="address"
newinvoice.DateColumn("date")=date
newinvoice.CurrencyColumn("amount")=val(listbox1.text)
databasename.insertrecord "invoices" , newrecord
databasename.commit
I have changed `newrecord = New DatabaseRecord` to newrecord = New record` which seems to work but I cannot
get the code to populate a field of the record to work, and am yet to try to insert a record into database.
I realise that in KBasic the database name is not needed, just the table name.
Can someone show me the KBasic equivelant code please.
Regards
andyf