jeanjeanot
New member
- Joined
- Oct 17, 2011
- Messages
- 2
- Programming Experience
- 3-5
Hi all,
I want to build my own class. In it, I need to recreate a behavior we can see in DataTable and in some other places : accessing items by their name or by their index. How can I reproduce such a behavior. Here's what I mean :
'Here's one way to access the data
A = MyObj(0).value
'Here's the other way I would like to acces it
A = MyObj("Blablabla").value
How can I create my class so I can access items in an array (or list preferably) by it's index or an unique Name ?
Thank you !
Jean
I want to build my own class. In it, I need to recreate a behavior we can see in DataTable and in some other places : accessing items by their name or by their index. How can I reproduce such a behavior. Here's what I mean :
'Here's one way to access the data
A = MyObj(0).value
'Here's the other way I would like to acces it
A = MyObj("Blablabla").value
How can I create my class so I can access items in an array (or list preferably) by it's index or an unique Name ?
Thank you !
Jean