I need to declare an object array to store a primary key to use with the .Find method of the datarowcollection.
My table has a single field primary key so I only need 1 entry in my object array.
Then I assign the primary key
And then delete the item
But a() contains two rows a(0) the selected item and a(1)=nothing.
I cannot see the wood for trees!!
How do I set a() to be an object array with only one entry?
Thnx
My table has a single field primary key so I only need 1 entry in my object array.
VB.NET:
Dim a(1) as object
Then I assign the primary key
VB.NET:
a(0) = me.combo1.selecteditem
And then delete the item
VB.NET:
Me.MyDataSet.System.Rows.Find(a).Delete()
But a() contains two rows a(0) the selected item and a(1)=nothing.
I cannot see the wood for trees!!
How do I set a() to be an object array with only one entry?
Thnx