Instead of creating the array name dynamically, why not create a
two-dimensional array?
Dim i As Integer = 4
Dim j As Integer = 10
Dim AnArray(i, j) As Integer
For i = 0 To AnArray.GetUpperBound(0)
For j = 0 To AnArray.GetUpperBound(1)
AnArray(i, j) = i + j
Next
Next
On Apr 12, 2005 1:32 AM, S KANNAN <[EMAIL PROTECTED]> wrote:
>
>
> Hi all,
>
> I want to create array dynamically. The array name should be constructed with
> the loop variable. I tried with eval function. I am not getting the required.
> Do anybody know the method.
>
> For example,
>
> dim arrtest1(10)
>
> for i = 1 to 4
>
> eval("arrtest"&i) &(i) = 10 --> This is not functioning properly.
> Is it correct?
>
> next
>
> The array name should be arrtest1(), arrtest2(), etc...
>
> What is the proper method of creating this type of array?
>
> Thanks in advance,
>
> Kannan.S
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site!
>
> [Non-text portions of this message have been removed]
>
> Yahoo! Groups Links
>
>
>
>
>
--
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/