2,892 questions
For example:
Dim result As Integer() = MyArray.Select(Function(v, i) New With {v, i}).Where(Function(p) p.v = condition_item_is).Select(Function(p) p.i).ToArray
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
hi
Dim MyArray as String={"a","b","c","a","b","h","a"}
Dim condition_item_is="a"
ArrResault={0,3,6} thank..
For example:
Dim result As Integer() = MyArray.Select(Function(v, i) New With {v, i}).Where(Function(p) p.v = condition_item_is).Select(Function(p) p.i).ToArray