Search Array and Return Index?


Recommended Posts

Posted

How do i search an array and if value is found return the index of that value?

private ArrVals = {"a", "b", "c", "d"}

If I search for "c". I want to return 2

Archived

This topic is now archived and is closed to further replies.