cleopard Level: Big Cheese
 Registered: 02-09-2005 Posts: 28
|
VB Collection
I have something I want to code in VB where I'm checking to see if a character in a string falls into a particular group of characters and if it does, change that character to something else. Some languages have something like an enumeration type where you can do something like:
type chars is ('/' , '|', '*');
if filename[x] in chars then
.
.
I'm wondering how best to handle that in VB. I see something called a 'Collection' that can be dimensioned, then items can be added. Would this be the best way to this, or is there another construct I haven't found yet? Thank you.
|