Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1418
  • Last Modified:

Convert(Fortran to Visual Basic)

I have several Fortran codes.
I want to convert these to visual basic codes.
I tried to program it with visual basic but it was not easy to handle most Fortran codes.
I've done just Do-Loop and Comment and If statement etc,.
Has anybody worked on converting program from Fortran to Visual Basic(I saw that one program convert Fortran to C)?
0
lsung
Asked:
lsung
  • 3
1 Solution
 
cymbolicCommented:
It's more than just converting the language.  You have to add interface logic for all the forms & controls, and you are going from a single control serial process into the event driven model of Windows.  The best you can to is preserve your algorithms.  Program flow and control is entirely differrent.  Even if you can find a Fortran to Basic, it's not the same program structure as Visual Basic.  Best to wrk through few complete small systems in VB before attempting your Fortran conversions.  You need to know your target language and system better before proceeding.
0
 
lsungAuthor Commented:
I guess you think too far.
I do not intend to convert form , control, etc,..
My fortran codes mainly have a lot of subroutines and functions.'
I want to convert these to VB code not making any form or control button.
What I intent to do is to convert do-loop, if-statement, Write- format, variable statements,, something like this



0
 
cymbolicCommented:
Well, if these are generally useful functions, then they would be most likely contained in a .BAS module as public functions, rather than in .frm modules in Visual Basic, and they wouldn't have in display interface.  I have written extensively in Quick Basic before going to Visual Basic, and in years past, wrote a number of commercial systems in Fortran.  

In this case, you might do well to look for a Fortran to Basic conversion tool, although I've never seen one that I can recall.  Basic was very unpopular in prior years in the eyes of professional developers.  They viewed it as a hobbyist's language with no real commercial future in the industry, so it's not likely that you'll find a software package to convert from Fortran to Basic.  I'll keep my eyes open for one, though!
0
 
cymbolicCommented:
For some help, you might go to filepile.com on the internet.  Search in the MS_DOS area for Fortran and Basic.  You'll find a number of basic to fortran conversion programs.  I know it goes the wrong way for you, but there might be something there you can use.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now