Solved

Vb.Net - Converting VB6 Function

Posted on 2013-02-04
6
354 Views
Last Modified: 2013-02-07
Good Day Experts!

A few month ago I started on a VB.Net conversion from VB6.  I first ran it through the "converter".  Then I spent time converting code to DataTables and DaterReaders.

Problem I have now is that they have a subroutine that was just written in VB6 that I need to get into the VB.Net version.  

Is it possible ot run the conversion on that subroutine that I currently have sitting in my VB.Net program?

Thanks,
jimbo99999
0
Comment
Question by:Jimbo99999
  • 3
  • 2
6 Comments
 
LVL 74

Expert Comment

by:käµfm³d 👽
ID: 38852291
Can you indicate which converter you are using?
0
 

Author Comment

by:Jimbo99999
ID: 38852406
I have Visual Studio 2005. I opened that VB6 project and was prompted with the conversion screen.  At the top, it indicates "Visual Basic Upgrade Wizard".
0
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 250 total points
ID: 38852415
If the converter did not change the code much, it could be the case that the existing VB6 code is compatible with VB.NET. Most (if not all) of the old VB6 functions were ported over to VB.NET for compatibility. Functions such as Mid, InStr, Left, and Right, for example, all are usable within VB.NET.

Can you perhaps share the function itself?
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:Jimbo99999
ID: 38852485
Ok, but it is very long and has 102 errors just from putting it in the VB.Net project.

How do I get it to you here?
0
 
LVL 16

Assisted Solution

by:HooKooDooKu
HooKooDooKu earned 250 total points
ID: 38852558
You can post code files with the "Attach File" paper clip icon that should display below the entry field when you post a comment.

Is the function relatively self-contained, or does it have a bunch of dependencies?  If the subroutine isn't full of dependencies, you could always create a small project that mostly just calls this subroutine.  Then do a conversion to a new VB.Net application.  Go into the VB.Net application and copy-n-paste this one subroutine from one VB.Net application to another.
0
 

Author Comment

by:Jimbo99999
ID: 38852601
I ended up just converting the entire VB6 project with the new subroutine.  Then I just took the subroutine from that conversion and put into the version I have been working on.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now