473,395 Members | 1,454 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

vb6 to vb.net migration

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

Sep 29 '06 #1
6 1146
Hello ba****@gmail.com,

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
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

Sep 29 '06 #2
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

GhostInAK wrote:
Hello ba****@gmail.com,

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
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
Sep 29 '06 #3

OR

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

Which is the same thing.

Israel

GhostInAK wrote:
Hello ba****@gmail.com,

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
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
Sep 29 '06 #4
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
OR

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

Which is the same thing.

Israel

GhostInAK wrote:
>Hello ba****@gmail.com,

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
>>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

Sep 29 '06 #5
<ba****@gmail.comschrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Sep 29 '06 #6
<ba****@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
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.
Oct 2 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Paddy McCarthy | last post by:
Frustrated at being prevented from using Python at work I went gunning for Perl. Time to roll out some useless Google statistics to make me feel better Google Phrase count...
4
by: susmita_ganguly | last post by:
Hi I am trying to upgrade from oracle 8i to oracle 9i on the same server ..I don't know much abt migration . Can anyone help me out. Thanks. Susmita
11
by: Jep | last post by:
Any help or advice appreciated. We have just installed and configured a new DB2 v.8.1 with latest FixPack. Just a few days later it dies and now we have a DB that is totally unusable. - - - -...
4
by: Abram Friesen | last post by:
Hi, I'm a developer for a software application vendor, and our application makes use of a customer-maintained Oracle 8i/9i database. We've had a customer request to support DB2 database, and I'm...
1
by: sac | last post by:
I am using DB2 v8.1 on UNIX. A few weeks ago the DBAs carried out node migration activity on the database. After the node migration I observed that the queries that execute on temporary tables...
1
by: rob | last post by:
Dear All, I have a very small test project to convert asp to asp.net using the Microsoft/Artisan ASP to ASP.NET Migration Assistant...
1
by: Bonggoy Cruz | last post by:
We have a fairly big size ASP.NET web application that was written VB.NET. We are in the process converting the web project. We used the migration wizard included in VS 2005. I followed step by...
60
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the...
9
by: Troels Arvin | last post by:
At work, some people have found IBM's Migration Toolkit (MTK) to be a nice tool for copying data from one table (in another DBMS product) to DB2. Now, they want to do the same thing from one DB2...
3
Frinavale
by: Frinavale | last post by:
I have been researching the best approach to migrating a VB6 application into a VB.NET application. There is a lot of information out there but most of it recommends that you "train in the migration...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.