I’m trying to create a RealbasicSQL database and add data. When I try to assign a value to any non-text field, I get a "Parameters are not compatible with this function.
I create the table with:
HPPdb.SQLExecute “create table HPP (IDX integer NOT NULL PRIMARY KEY,”+_
“Angle Double,”+_
“BegPtX Integer,”+_
“LayerName varchar,”+_
“FillColor varchar,”+_
“SpareDbl2 Double)”
I try to add data with:
dim dr as New DatabaseRecord
dr.Column(“Angle”) =0.0
dr.Column(“BegptX”) =200
dr.Column(“BegPtY”) =300
dr.Column(“LayerName”)=“BaseLayer”
dr.Column(“FillColor”)=""
app.HPPdb.InsertRecord “HPP”, dr
The VarChar fields are ok but the integer and double fields cause the errors.
TIA