Thanks for your help...
The idea of arrays had occurred to me, but I was trying
to find the VB equivalent of "Eval" to save me some lines
of code.
Quote:
>-----Original Message-----
>hey if u have all your objects in an array u can just
get the desired object
Quote:
>by
>yourobj = yourobjarray(passednnum)
>whats the problem? I mean why do u want to have 10 diff
variables when u can
Quote:
>have one variable array to access all of those. I think
u r not using arrays
Quote:
>where they should be used.
>> In VB.Net:
>> Let's say I have 10 objects - named Object1,
>> Object2, .... Object10
>> I have a procedure that takes a number as an argument.
>> Depending on this number, I want to operate on a
>> different object.
>> For instance, argument = 4 then I need Object 4.
>> Instead of one huge select case statement, I'd like to
do
>> something like this-
>> MyObject = Eval("Object" + argument)
>> Which is what I would do with ASP - but I don't know
how
>> to do it in VB.Net
>> Thank you in advance for your help!
>.