View previous topic :: View next topic |
Author |
Message |
grr
Joined: 18 Sep 2011 Posts: 11
|
Posted: Tue Oct 29, 2013 3:53 am Post subject: addnew() & Addnew("Name") |
|
|
Probably a dumb question but how do you implement the Addnew function? |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Oct 29, 2013 7:15 am Post subject: |
|
|
You can just call AddNew on a VirtualRecordset. This returns a new VirtualRecord which you can then just set the fields for and the call the Update() to commit the changes (or CancelUpdate to cancel) eg
VirtualRecord vr = virtualRecordset.AddNew();
vr["Name"] = "foo";
vr.Update(true); _________________ Infralution Support |
|
Back to top |
|
|
grr
Joined: 18 Sep 2011 Posts: 11
|
Posted: Tue Oct 29, 2013 10:44 pm Post subject: |
|
|
Thanks Support.
Exactly what I was after.
I like VDO and I am going to invest in it.
Regards....
grr |
|
Back to top |
|
|
|