T
Tim
hi all,
not quite sure how to ask this, but here goes...
I have an array of values
a(0)="SMITH"
a(1)="JOHN"
I need to be able to reference each element using a string...
a("lastname") should return "SMITH"
a("firstname") should return "JOHN"
in much the same way as referencing a control in a collection of
controls, or an item in a collection of items.
any clues on how to achieve this?
(of course, everything is dynamic. I don't know that "lastname" and
"firstname" even exist before runtime)
cheers
not quite sure how to ask this, but here goes...
I have an array of values
a(0)="SMITH"
a(1)="JOHN"
I need to be able to reference each element using a string...
a("lastname") should return "SMITH"
a("firstname") should return "JOHN"
in much the same way as referencing a control in a collection of
controls, or an item in a collection of items.
any clues on how to achieve this?
(of course, everything is dynamic. I don't know that "lastname" and
"firstname" even exist before runtime)
cheers