Hi ,
How to find value inside the array with out using a loop?
thanks,
Popskie
Printable View
Hi ,
How to find value inside the array with out using a loop?
thanks,
Popskie
Would you please explain more?
If you want to find a value inside an array you can use Array[Index];
Are you looking for Array.IndexOf() ?
Sorry
Ex.
VB Code:
String[] test = {"A","B","C","M","Z"}
this the scenario, if i pass A or B or C or Z
it return true or 1
but if i pass Q it return false or 0
if i pass W it return false or 0
if i pass X it return false or 0
I hope I make my self clear at this time.
Thank,
Array.IndexOf(test, "A") >= 0
Thanks penagate. LOL hehe. Wow