>Hey Alex, > >I think the only way you could use a switch is if you could easily strip off the country or region from the beginning of the file name. Then you could use FileName.Substring() in the switch and the types in the case. If you can't do that easily enough, then I think you're stuck with the if/else construct ... and it's not that bad really ... much easier to read than RegEx stuff!!! Also, I don't see how Enums will help either. > >~~Bonnie
Nope. I can't easily strip as there are several different countries and regions. It would be more trouble than it's worth. I guess I'm stuck with if..else if. Looks ugly though! Thanks!
"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry