> hi,
> 
> i'm confused about the output i get from:
> 
> PUBLIC SUB test()
> 
>    DIM hResult AS Result
> 
>    'hConnection is an established Connection, with existing Table
> "test", Fields "id", db.Serial Primary Key, "name" db.String
>    hResult = hConnection.Create("test")
>    PRINT hResult.Index
>    hResult["name"] = "Aaron"
>    hResult.Update()
>    PRINT hResult.Index
>    hResult["name"] = "Zacharias"
>    hResult.Update()
> 
> END
> 
> i get in console:
> 0
> 0
> 
> but i thought the second PRINTed Index should be 1? the records are fine
> but with both indizes 0 shouldn't the first be overwritten with
> "Zacharias" or is there another internal pointer to specify the record??
> 
> regards,
> tobi
> 

In creation mode there is only one record in the Result object, the record 
that will be created. So Result.Index always returns 0.

Regards,

-- 
Benoît Minisini

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to