help!

DR00ME

Well-known member
Joined
Feb 6, 2004
Messages
169
Location
Finland
Is there a similar function for VB.NET as

in PHP :

array_key_exists -- Checks if the given key or index exists in the array. return true or false.


<?php
$search_array = array("first" => 1, "second" => 4);
if (array_key_exists("first", $search_array)) {
echo "The first element is in the array";
}
?>


if there isnt could you please write me one :D
 
is it like if array.indexOf is empty then it didnt find the requested e.g. number or string... and its false.. ?
 
Originally posted by Heiko
Use the ArrayList Object.
It has a .contains method.

(I think)


how do I make a normal array to ArrayList object and search inside it for a specific integer huh ?
 
Last edited by a moderator:
B(50) as byte

lblPixelClr.Text = CStr(Array.IndexOf(B, 240))


the problem is that B is not an Array... well it is ..but its type is not array... so that thing is not working...


so is there way to convert byte array to array ? huh... or what is the difference between:

B(50) as Byte

B(50) as Array

But both are arrays right ? im confused... someone lighten me please!
 
Last edited by a moderator:
Back
Top