[Gambas-user] Database Edit error with SQlite

Benoit Minisini gambas at ...1...
Sat Aug 28 14:57:43 CEST 2004


On Saturday 28 August 2004 03:09, Jeff Johnson wrote:
> $hConn AS Connection
> rWeather AS result
>
> PUBLIC SUB Form_Open()
>
> $hConn = NEW Connection
>
>
>   WITH $hConn
>     .Type = "sqlite"
>     .Name = "/home/jeffjohnson/projects//Database/WXaprs/WXaprs.db"
>     .open
>   END WITH
>
> END
>
> PUBLIC SUB Button1_Click()
> DIM rWeather AS result
>
> $hConn.Begin
>
> >>>>I do not get past this line
>
> rweather = $hconn.edit("ClimateData","Callsign = &1","THORN")
>
> >>>>>I get an error "Type mismatch: Wanted Void, Got String instead"
> >>>>
> >>>>What am I doing wrong?

Nothing, this is a bad bug in the interpreter... I join a patch that fixes it. 
Put it in ./src/exec.

Tell me if you have any problem with it.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gbx_exec.c
Type: text/x-csrc
Size: 24775 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20040828/f2011daf/attachment.c>


More information about the User mailing list