all groups > vb.net upgrade > december 2004 >
You're in the

vb.net upgrade

group:

COnverstion from VB6 to VB.NET


COnverstion from VB6 to VB.NET NEWBIE in ABQ
12/3/2004 9:27:11 AM
vb.net upgrade:
I have a application that uses the REDIM function a lot. The application
redefines arrays depending upon variables. The variables are entered and the
arrays are made smaller or larger depending upon the data that is to be
processed.

The first array level is REDIM'ed and then after that a second level is
REDIM'ed. This methodology is needed due to thenature of the data that is
being processed.

When I ran the conversion tool to go from VB6 to .NET, this funciton is not
supported on the d et .net fo.NET does not allow me to REDIM the second
dimenstion of the array?

Is there a means that I can make this work without having to rewrite all of
the dimesioning logic?
Re: COnverstion from VB6 to VB.NET NEWBIE in ABQ
12/3/2004 1:25:03 PM
OK, I figured it out.

When I initally defined the DIM I used (). When I redefined it with a (1,1)
value then the Redim worked?

I have not really tested it yet. But it went thoough the compilation
process OK.

[quoted text, click to view]
Re: COnverstion from VB6 to VB.NET Herfried K. Wagner [MVP]
12/3/2004 9:50:22 PM
"NEWBIE in ABQ" <NEWBIEinABQ@discussions.microsoft.com> schrieb:
[quoted text, click to view]

VB6's 'ReDim' was able to change the last dimension of an array only too.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

AddThis Social Bookmark Button