[Gambas-user] Result object
tobias
tobiasboe1 at ...20...
Wed Nov 17 14:37:42 CET 2010
Charlie Reinl schrieb:
> Am Dienstag, den 16.11.2010, 21:44 +0100 schrieb tobias:
>> Charlie Reinl schrieb:
>>> Am Montag, den 15.11.2010, 19:56 +0100 schrieb tobias:
>>>> hi,
>>>> i have again another question about the result object...
>>>> when i do:
>>>> hResult = hConnection.Edit("table")
>>>>
>>>> i get a read/write result, i can move through the elements and edit
>>>> their fields, e.g.
>>>> hResult.MoveTo(2)
>>>> hResult["id"] = 10
>>>>
>>>> right?
>>>> but where do i have to move to to add one (or more) new element/s??
>>>>
>>> Salut Tobias,
>>>
>>> hResult = hConnection.Create("table")
>>>
>>> should to the job
>>>
>> this maybe works but in theory i can't imagine why...?
>>
> Sorry, I can't follow you.
>
> EDIT reads something which can be handeled read/write afterwards.
>
> Where is the problem with CREATE ?
>
> CREATE, creates something new, and throws immediately an EDIT.
>
> So, EDIT reads something which can be handeled read/write afterwards.
>
oh, i'm very sorry, i just read the gambas doc entry entirely,
Connection.Create() creates a read/write result for creating records, i
thought it would create a new table an returns an empty result-.-
hmm, but a new question: to add 2 new records, do i have to call
Connection.Create() twice? or is there an easier way??
More information about the User
mailing list