I'm not sure there is an exact replacement. I'd think, however, that you could do the same thing with a do case ... endcase statement, though the code might be a bit longer. Thus to use the example my Access has using the switch function
Code:
DO CASE
CASE CityName = "London"
MatchUp = "English"
CASE CityName = "Paris"
MatchUp = "French"
CASE CityName = "Rome"
MatchUp = "Italian"
OTHERWISE
MatchUp = "No Match"
ENDCASE
The case structure has a lot more capabilities, but the visible overhead is a bit larger.
OTTOMH, I cant think of one in VFP6. To achieve the same functionality, you can use nested IIFs, a case statement, and there's also the Inlist function. Jon Hawkins
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.