Thank you for your reply, for now I'm using inner classes as a User-defined types, but they are not so practical to implement, since I have to make an new instance of that class each time I want to use it. what I wanted was a simpler method like the structure in VB, and like you said dictionary seems helpful in this field I'll try to use it from now on.thanks again. :)