In VB.Net there is a function -- INLIST(), where I can put a list of numbers and check against what is in a variable. Could someone show me in VB6 code how to check a list a numbers/chars against a given variable, that will function the same way as a InList function does? Thanks.
if CoPlanID = INLIST(1, 10, 15, 20, 23, 50, 150) then
var = "found it"
var = "did not find it"
......I need replace code for what I use the INLIST function for.