If I have a multi-dimensional array:
dim test (,) in the form of a string How can I loop through the array to find out how in the other dimension of the array is contained in another variable?
Obviously, this does not work:
Integer as dim x = test.IndexOf (other variable)
Have you tried LINQ? Something on the pattern of maybe (pseudo-code-IAS):
var x = (From the item in the test where the item: index (other variable)> select = 0 item. Other variables)) .SingleOrDefault (); FYI, if you declare your array instead, then it should work:
string [] [] test < / Pre>
Comments
Post a Comment