Example in Clarion:
IF INLIST(MyField, "Male", "Female", "Both") MESSAGE("Valid")ELSE MESSAGE("INVALID")END
In Clarion I could test for multiple values with a single statement as shown above (I believe up to 25 values at a time). Is there a similar statement in VB.NET? Currently I have code like:
IF MyField <> "Male" AND MyField <> "Female" AND MyField <> "Both"...END
Thank you for any ideas!
Ben