Solved

Convert(Fortran to Visual Basic)

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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

724 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