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. > salut, yes, understood is this far but my problem is that hConnection.Edit() returns a read/write result to edit an specific entry field by Move*()ing to the record. my question is now where i have to Move*() to to add a new record. Connection.Create("table")["field"] = new_records_value works well, but in case i Move*()ed somewhere in the result where do i have to move to make sure that i don't overwrite data in the record i just moved too, instead create a new one? is this explanation clear enough?
------------------------------------------------------------------------------ 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user