Solved

Convert(Fortran to Visual Basic)

Posted on 1997-10-07
4
1,395 Views
Last Modified: 2013-11-25
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
Comment
Question by:lsung
  • 3
4 Comments
 
LVL 9

Accepted Solution

by:
cymbolic earned 50 total points
ID: 1436921
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
 

Author Comment

by:lsung
ID: 1436922
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
 
LVL 9

Expert Comment

by:cymbolic
ID: 1436923
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
 
LVL 9

Expert Comment

by:cymbolic
ID: 1436924
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Prevent user closing word document opened with VB6 6 78
Adjust the position 3 65
Question to Pivot table 1 63
pop out of webbrowser1 control vba6 5 26
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

830 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