vb6 to vb.net migration

B

bartj1

Hello,
I am a vb (classic vb5/vb6) programmer who is getting his feet wet with
..net.

I have been attempting to use various old vb functions and tweek them
as required to get thme to run under .net. In many cases I was
pleasently surprised by how easy it was, and in other cases I have had
to do searches on the net as the local help is nearly worthless(too
much information that I dont need).

Can anyone recommend a place on the web where there is a good table of
equlivent(vb > .net) translations?

At presently I am looking to find a translation for the FUNCTON
"String" which takes 2 arguments to create a string with X occurances
of Y: Old VB = String(5,"A") . This returns a string of "AAAAA".
All web searches to date either take me down the path of -string as
varibale- or -string as an object- to be parsed.

Comments?
Thanks
bartj
 
G

GhostInAK

Hello (e-mail address removed),

String (As your 'useless' MSDN documentation points out) as objects.. Objects
have ctors..
An abundance of information is NEVER a Bad Thing.

Dim tString as String = New String("A", 5)

-Boo
 
B

bartj1

Thanks for the resposne...

Your code works. Understand that I need to get with the object way of
doing things...just a little un-natural at this point, but its sure to
get better...again...thanks!

bartj
 
G

GhostInAK

Hello Izzy,

Yes.. But I tend to view ctors (especially parameterized ctors) as object
initializers.. so I like to make the distinction between object instantiation
and object initialization.

-Boo
 
H

Herfried K. Wagner [MVP]

At presently I am looking to find a translation for the FUNCTON
"String" which takes 2 arguments to create a string with X occurances
of Y: Old VB = String(5,"A") . This returns a string of "AAAAA".

Method 'StrDup' or the 'String' constructor.
 
H

Harry Strybos

Hello,
I am a vb (classic vb5/vb6) programmer who is getting his feet wet with
.net.

I have been attempting to use various old vb functions and tweek them
as required to get thme to run under .net. In many cases I was
pleasently surprised by how easy it was, and in other cases I have had
to do searches on the net as the local help is nearly worthless(too
much information that I dont need).

Can anyone recommend a place on the web where there is a good table of
equlivent(vb > .net) translations?

At presently I am looking to find a translation for the FUNCTON
"String" which takes 2 arguments to create a string with X occurances
of Y: Old VB = String(5,"A") . This returns a string of "AAAAA".
All web searches to date either take me down the path of -string as
varibale- or -string as an object- to be parsed.

Comments?
Thanks
bartj
I too, am still interested in "bartj1" question':

"Can anyone recommend a place on the web where there is a good table of
equlivent(vb > .net) translations?"

This would be most useful to many programmers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top