[Gambas-user] strang !!! (bug maibe)
Benoit Minisini
gambas at ...1...
Tue Jun 7 12:39:14 CEST 2005
On Monday 06 June 2005 17:27, Daniel wrote:
> hi all
> il you put this code in one button, the first time you click no problem
> and the second time and after
> "Type mismatch: wanted integer, got instead"
> i tink the problem com from the { htable.primarykey = ["id"] }
>
> DIM hTable AS Table
>
> IF con1.Tables.Exist("ZOZO") THEN
> con1.Tables.Remove("ZOZO")
> ELSE
> PRINT "No Table ZOZO"
> ENDIF
>
> hTable = Con1.Tables.Add("ZOZO")
>
> hTable.Fields.Add("id", gb.Integer)
> hTable.Fields.Add("firstname", gb.String, 16)
> hTable.Fields.Add("name", gb.String, 32)
> hTable.Fields.Add("birth", gb.Date)
> hTable.Fields.Add("actived", gb.Boolean)
> hTable.Fields.Add("salary", gb.Float)
>
> hTable.PrimaryKey = ["id"]
>
> hTable.Update
>
> daniel
>
>
Please tell which version of gambas you are using!
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list