Developer technologies | VB
An object-oriented programming language developed by Microsoft that can be used in .NET.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
hi
And How to delete a post?
Dim array1()as string = {"1", "2", "3", "4", "5", "6", "7", "8"}
Dim array2()as string = {"1", "2", "3", "5", "6", "8"}
'Result output as integer (0,1,2,4,5,7) Invert
Hi @Mansour_Dalir ,
You can refer to the following code.
Dim resultIndexes As Integer() = array1.
Select(Function(element, index) New With {.Element = element, .Index = index}).
Where(Function(item) array2.Contains(item.Element)).
Select(Function(item) item.Index).
ToArray()
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.