[code] //saving data for the Person type
dim therowID as Integer
dim row as new DatabaseRecord
dim dateBool as Boolean
dim theDate as new Date
dim nowDate as new Date
//read last row ID/
therowID = GetLastRowID(“CDD2_Person”,“P_ID”)
row.column(“P_ID”) = therowID+1[/code]
I get a compiler error on the last line of code stating that the ‘Parameters are not compatible with this function’
Which function? My function GetLastRowID simply returns an integer.
If I do this:
row.column("P_ID") = 124
Still the same error. I don’t get it…
[Edit]
the column type is definitely Integer, but if I change the rowID into a string it compiles… huh?
The database is SQLite, I defined this column as Integer and Autoincrement but I found out (due to errors I suspect now) that it didn’t increment. I wil redefine the column and test again.