[Gambas-user] Problem using gb.db component
Benoit Minisini
gambas at ...1...
Fri Jun 27 11:48:17 CEST 2008
On jeudi 26 juin 2008, you wrote:
> Hello! I've got a problem using the GB.DB component. This is the code:
>
> PUBLIC SUB Form_Open()
>
> DIM hConn AS NEW Connection
> DIM res AS Result
>
> WITH hConn
> .User = "root"
> .Password = "asdewq"
> .Host = "localhost"
> .Name = "docemania"
> .type = "mysql"
> END WITH
>
> hConn.Open
>
> hConn.Begin
>
> res = hConn.Create("Produtos") ****** It crashes here with error
> signal #11
>
> res!Nome = "Doce de Leite"
> res!Descricao = "Doce de Leite"
> res!Preco = "2.00"
> res!PrecoVenda = "5.00"
> res!Obs = "Nenhuma"
> res!Data = "2008-05-01"
> res!Ativo = 1
> res.Update
> hConn.Commit
>
> END
>
> Please help me. My Gambas Version is 2.5
>
> Thanks
>
> Marco
The bug has been fixed in revision #1438.
Regards,
--
Benoit Minisini
More information about the User
mailing list