Solved

Convert(Fortran to Visual Basic)

Posted on 1997-10-07
4
1,379 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
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.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

747 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

15 Experts available now in Live!

Get 1:1 Help Now