I do not know vb.net but I try to figure it out, you should calculate the remainder of serchNum and if remainder is 0 then it is even else it is odd

like this

if mod(searchNum,2) = 0 then

SearchNumFind = No

else

SearchNumFind = Yes

end if

I use mod to calculate the remainder here

but it may be changed in vb.net it may be one of the following

searchNum mod 2 = 0 or

getRemainder(searchNum,2)

hope this will help....

Leo

like this

if mod(searchNum,2) = 0 then

SearchNumFind = No

else

SearchNumFind = Yes

end if

I use mod to calculate the remainder here

but it may be changed in vb.net it may be one of the following

searchNum mod 2 = 0 or

getRemainder(searchNum,2)

hope this will help....

Leo