Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddNew in ADO.NET
Message
 
To
27/06/2002 19:21:06
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00673112
Message ID:
00673172
Views:
16
>I am getting some negative feed back from an outside development team to the effect that "AddNew" is not a fuction that is available in ADO.NET.
>If anyone can shed some light on this for me, your comments will be much appreciated.

Here a sample of adding new rows to DataSet object:
'Create a new Row
workRow = resultDataSet.Tables("Orders").NewRow
'Set the value of each of the column present in the table Orders
workRow.Item("CustomerId") = 1
workRow.Item("OrderDate") = Now()
…
…
'Add the row to the DataSet
resultDataSet.Tables("Orders").Rows.Add(workRow)
'Reconcile changes with the data source
sqlDSCmd.Update(resultDataSet, "Orders")
You might get a more detailed answer in .Net forum.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform