[Gambas-user] Result object

Fabien Bodard gambas.fr at ...626...
Wed Nov 17 17:09:57 CET 2010


no just create one time... and then ... just call update between each entry



2010/11/17 tobias <tobiasboe1 at ...20...>:
> Benoît Minisini schrieb:
>>> 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??
>>>
>>
>> Once you have call the Update() method on the Result object, you can use it
>> again to create another record.
>>
>> Regards,
>>
> so i have to .Create(), input, .Update(), .Create(), input and .Update()?
> not .Create(), input, .Update(), input, .Update()?
>
> thank you for your help!
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fabien Bodard




More information about the User mailing list