[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Convert(Fortran to Visual Basic)

Posted on 1997-10-07
4
Medium Priority
?
1,414 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 9

Accepted Solution

by:
cymbolic earned 150 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

649 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