[Gambas-user] gb.db Unknown symbol 'Fields' in class 'Connection'

PICCORO McKAY Lenz mckaygerhard at ...626...
Sat Nov 30 22:44:24 CET 2013


and then i have this error when run in another runtime environment:

Unknown symbol 'Fields' in class 'Connection'

i have this code:

If Not consq.Tables.Exist("sysasis_listado") Then
                hTable = consq.Tables.Add("sysasis_listado")
                With hTable.Fields
                    .Add("cod_ficha", db.String, 20)   ' FICHA/Cedu, el id
del trabajador en VNZ es numero de la CI
                    .Add("cod_lugar", db.String, 20, lugar)   ' nombre de
ubicacion(tienda o sobrenombre) en al que
                    .Add("fec_actualizacion", db.Date,, Now)   ' fecha del
registro de dia de su huella dactilar
                    .Add("cod_usuasys", db.String, 20)   ' ficha / cedula /
id del trabajador NOTA ESTE NO ES CI, en VNZ es CI
                End With
                hTable.PrimaryKey = ["cod_ficha", "cod_lugar"]
                hTable.Update
                If Error Then
                    Print "Error - new db remote: " & Error.Code & " " &
Error.Text
                Else
                    Print "Advertencia - new db remote: created " &
Error.Code & " " & Error.Text
                Endif
            Else
                Print "Advertencia - new db remote: existe: " & Error.Code
& " " & Error.Text
            Endif

What its the correct? htable.Field or htable.Fields ? please urgency

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com



More information about the User mailing list