[Gambas-user] strang !!! (bug maibe)

Daniel daniel at ...889...
Thu Jun 9 10:57:40 CEST 2005


Benoit Minisini wrote:

>On Tuesday 07 June 2005 15:14, Daniel wrote:
>  
>
>>Benoit Minisini wrote:
>>    
>>
>>>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!
>>>      
>>>
>>gambas 1.9.5
>>
>>daniel
>>
>>    
>>
>
>Do you have this problem with 1.9.9 ?
>
>  
>
no it's ok with 1.9.9
tank you

daniel





More information about the User mailing list