Solved

Vb.Net - Converting VB6 Function

Posted on 2013-02-04
6
355 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 75

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 75

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AutoHotkey ActiveX Component Error 8 73
Round a string to two digits 12 32
Populating an array of locale_time_info 8 37
Visual Studio .Net 2012 and Crystal Reports 9 49
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

862 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

25 Experts available now in Live!

Get 1:1 Help Now