Recent: Fix food processor motor?

Mend Application Development

Mend Software, Application Development
Find out how to mend it for free.

Ask Question
Mend Software, Application Development
Find out how to mend application development

Mend > Application Development

Mend Software, Application Development

Where is the IsOdd function in VB.Net?

VB 6 has a function called isodd(n) which returns true if n is an odd number, or false if not. This function is not in VB.Net. Is there an equivalent function in VB.Net?

O.M.
August 2003
You can use the MOD to tell if a number is even or odd:

dim isOdd as boolean
dim x as integer = 8

if x mod 2 =0 then
isOdd=false
else
isOdd=true
endif

Karl
September 2009
Mend Software, Application Development
Find out how to mend application development

How to mend ...

Find out how to mend just about anything howtomendit.com for free repair help, information and advice.
Mend Software, Application Development
Find out how to mend application development