Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Dec 14, 2017 4:43 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: VB .Net to RB
PostPosted: Thu Mar 21, 2013 4:13 pm 
Offline

Joined: Sat Jul 24, 2010 12:20 am
Posts: 52
Hi,

I have to convert a Visual Basic .net program that access an Access database. The new database will be MySql.

Would it be beneficial to try using the VB Converter?

Just curious.

Thanks

Rich


Top
 Profile  
Reply with quote  
 Post subject: Re: VB .Net to RB
PostPosted: Thu Mar 21, 2013 5:25 pm 
Offline

Joined: Sat Apr 25, 2009 4:08 am
Posts: 237
REAL's 'VB Migration Assistant' is only applicable to vb6 afaik.

Ditto vbConvert! which is now freeware.

Even with these tools converting from vb6 to RB is very difficult.
I'd imagine that this is also true for conversions from vb.net

_________________
RB 2012 Release 2.1 Personal edition (Windows)


Top
 Profile  
Reply with quote  
 Post subject: Re: VB .Net to RB
PostPosted: Thu Mar 21, 2013 6:14 pm 
Offline
User avatar

Joined: Sun Jan 25, 2009 5:11 pm
Posts: 576
Location: Guatemala, Central America
I don't believe the migration assistant is supported any more. But more importantly I don't think it's worth it (no offense to the developer) but I would rather recode the application in RS. It might take a lot less time than you think! Plus you will know exactly how your app behaves.

_________________
Future RS guru.
Ride the world!


Top
 Profile  
Reply with quote  
 Post subject: Re: VB .Net to RB
PostPosted: Fri Mar 22, 2013 1:57 pm 
Offline

Joined: Sat Jul 24, 2010 12:20 am
Posts: 52
Thats what I figured. I've done more difficult conversions: VB6 to Delphi.

I think all the syntax will work I just have to re-write the database code.

Once this is don I will have completely cut the apron stings to Microsoft.

Thanks ALL!

Rich


Top
 Profile  
Reply with quote  
 Post subject: Re: VB .Net to RB
PostPosted: Fri Mar 22, 2013 2:36 pm 
Offline

Joined: Sat Apr 25, 2009 4:08 am
Posts: 237
Hawkcode wrote:
Thats what I figured. I've done more difficult conversions: VB6 to Delphi.

I think all the syntax will work I just have to re-write the database code.

Once this is don I will have completely cut the apron stings to Microsoft.

Thanks ALL!

Rich


I hope you're right but I have my doubts about how easy you'll find it.
REAL, themselves gave up trying to convert vb6 code to RB in their last migration assistant
which should tell you something.
It's a topic I'm interested in though and I'd value anything you could share of your experiences
with porting to Delphi, such as how long it took and for what size project

_________________
RB 2012 Release 2.1 Personal edition (Windows)


Top
 Profile  
Reply with quote  
 Post subject: Re: VB .Net to RB
PostPosted: Fri Mar 22, 2013 6:18 pm 
Offline

Joined: Wed Mar 22, 2006 11:15 am
Posts: 712
Location: Southern California
Quote:
I hope you're right but I have my doubts about how easy you'll find it.


It depends entirely on the code. I've had large sections of code I could port with a few regular expressions and supporting functions, and code I had to rewrite from scratch. People tend to focus on the syntax, but that's not the big issue. Framework calls will determine how easy/difficult each function, class, or form is to port. VB6, RB, and VB.NET are similar enough in syntax that framework-independent source code will port with light editing. But the frameworks can vary from similar to radically different depending on what you're doing.

_________________
Daniel L. Taylor
Custom Controls for Real Studio WE!
Visit: http://www.webcustomcontrols.com/


Top
 Profile  
Reply with quote  
 Post subject: Re: VB .Net to RB
PostPosted: Sat Mar 23, 2013 7:40 am 
Offline

Joined: Sat Jul 24, 2010 12:20 am
Posts: 52
In the port to Delphi that was 15 years ago, I barely remember it though. It was a big project, but the VB code was written by me also so that helped.

Rich


Top
 Profile  
Reply with quote  
 Post subject: Re: VB .Net to RB
PostPosted: Sat Mar 23, 2013 9:29 am 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
IMO there is no point in doing 'conversions'. You are rewriting it from one language to another.

There are some things that Real Studio will do well and others it won't. The framework differences alone make it difficult to 'convert' a language but the glaring (and subtle) differences in the frameworks just mean you'll end up going line by line at some point trying to get Real Studio to act like the previous framework.

Not worth it in my opinion. Figure out the best way to do it in Real Studio. Yes, you can reuse some code but anything that touches the framework you might as well redo it.

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
 Post subject: Re: VB .Net to RB
PostPosted: Sat Mar 23, 2013 3:38 pm 
Offline

Joined: Sat Jul 24, 2010 12:20 am
Posts: 52
Not in my case. The app is a utility that goes through our Access DB and creates about 400 or so csv files that get attached to emails and sends them to about 200 individuals.

Sure the accessing the db will be different and the creating csv filles, but all the logic is the same.

Rich


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group