6 Replies - 1547 Views - Last Post: 27 October 2014 - 12:51 AM Rate Topic: -----

#1 tkitez   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 6
  • Joined: 01-April 14

conversion vb6 codes into vb.net

Posted 01 April 2014 - 06:41 AM

i'm new here. i need help for my project, i want to convert my vb6 code into vb.net code, but i'm newbie in vb.net. here is the code :

On Error Resume Next
rsTemp.AddNew
rsTemp!ID_temp = rsKnowledge!ID
rsTemp!fact = rsKnowledge!YESfact
rsTemp.Update
jwb = rsKnowledge!Yes
If Left(answer, 1) = "G" Then
rsKnowledge.MoveFirst
rsKnowledge.Find " ID= '" & answer & "' "
Label1.Caption = rsKnowledge!question
Else
rsSolution.MoveFirst
rsSolution.Find " ID_solution= '" & answer & "' "
frmDiagnose.Label1.Caption = rsSolution!solution
frmDiagnose.Show vbModal
End If 


by the way, that is an expert system code, thanks in advance

Is This A Good Question/Topic? 1
  • +

Replies To: conversion vb6 codes into vb.net

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14768
  • View blog
  • Posts: 59,038
  • Joined: 12-June 08

Re: conversion vb6 codes into vb.net

Posted 01 April 2014 - 06:45 AM

What have you tried in conversion? Quite a bit of VB6 and VB.NET syntax are similar.
Was This Post Helpful? 1
  • +
  • -

#3 belgarion262   User is offline

  • Prince of all (2) Saiyans

Reputation: 172
  • View blog
  • Posts: 955
  • Joined: 25-October 09

Re: conversion vb6 codes into vb.net

Posted 01 April 2014 - 06:55 AM

In Visual Studio, You have a wizard to convert VB6 to VB.NET. There is no freeware (to my knowledge) to convert VB6 to VB.NET. Even if you convert the code using a convertor, it won't do that 100%, you must to do some/more manual changes.

Check this bunch for more information.

http://www.codeproje.../Migration.aspx
http://visualbasic.a...6-to-vb-net.htm
http://www.codeproje...VB6ToVBNET.aspx
http://msdn.microsof...v=vs.60%29.aspx

This post has been edited by belgarion262: 01 April 2014 - 06:56 AM

Was This Post Helpful? 1
  • +
  • -

#4 gopikrishnamenongk   User is offline

  • New D.I.C Head

Reputation: 4
  • View blog
  • Posts: 28
  • Joined: 04-March 14

Re: conversion vb6 codes into vb.net

Posted 01 April 2014 - 08:40 AM

Visual studio will automatically convert your code from vb6 to vb.net. Acc.to me there is an integrated feature in advanced versions of visual studio for conversion of codes. moreover you can also do it manually if you like. there is no free software for doing this. Actually i had a vb 2010 sln file and after sometime i upgraded to vb2012. you would know that in vb2012 by val is removed. when i ran that vb2010 file it converted up the codes. i hope you would have actually understood what i mean. Acc. to my knowledge it will be automatically converted in the code editor
Was This Post Helpful? 1
  • +
  • -

#5 belgarion262   User is offline

  • Prince of all (2) Saiyans

Reputation: 172
  • View blog
  • Posts: 955
  • Joined: 25-October 09

Re: conversion vb6 codes into vb.net

Posted 01 April 2014 - 08:45 AM

Is that not exactly what I just said?
Was This Post Helpful? 0
  • +
  • -

#6 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14768
  • View blog
  • Posts: 59,038
  • Joined: 12-June 08

Re: conversion vb6 codes into vb.net

Posted 01 April 2014 - 08:47 AM

Sort of.. except for the part that was talking about converting a VB.NET 2010 project to a VB.NET 2012 project which certainly applies when dealing with VB6. *sigh*
Was This Post Helpful? 1
  • +
  • -

#7 GizmoxTS   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 27-October 14

Re: conversion vb6 codes into vb.net

Posted 27 October 2014 - 12:51 AM

The two comments about "there is no tool that I know of..." and "freeware..." are true up to now. Gizmox Transposition is now offering a service and soon a tool that will do this work. Obviously, it's not completely "one button push" operation, but does help a great deal. See the site: www.gizmoxts.com
There is also a MSDN listing: https://visualstudio...a1-56d7e4484f19

If you just need to do an assessment, there is a tool which will show you the "gaps". http://www.gizmoxts....consultancy-poc

Sorry for the "commercial marketing" approach. That's what what I know. If you are interested in the approach, read the material (blog, videos, white papers, etc.) You can also contact us directly and we will give you a description one-on-one.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1