Unless I am mistaken, isn't that what I am doing in the following code
(which I posted in my original posting):
Private Sub AddToCart(ByVal productid As Integer)
Dim x() As Integer = {productid, Me.categoryid}
If Me.cart.Rows.Contains(x) Then
If there is some kind of error or something here, please let me know, but it
seems to me that the above code would do the following:
1. Create an array of Integers and assign it the values in productid and
Me.categoryid
2. Use that array as the parameter for the Contains() method
Because 2 values are assigned to x() in the first step, doesn't that mean I
am passing 2 values in the second step?
--
Nathan Sokalski
(E-Mail Removed)
http://www.nathansokalski.com/
"Cor Ligthert[MVP]" <(E-Mail Removed)> wrote in message
news

E93F185-7C15-4799-AA66-(E-Mail Removed)...
> You use 2 values.
>
> Even if you set them in an array, it are 2 values.
>
> Although you have one reference to them, it still stays two values.
>
> Cor
>