convert turbo pascal to visual basic

Posted on 2008-11-17
Last Modified: 2013-11-23
I have some old turbo pascal programs I would like to convert to visual basic. I have heard you can use delphi. I downloaded delphi 9 trial. Now Now what, I dont know anything about doing this. I am a vb programmer. Can I use delphi to open a tp program?  How do I get to VB?

Question by:HenryV1955
    LVL 14

    Expert Comment

    Are you saying that you have programs or program source/project code?
    LVL 76

    Expert Comment

    Delphi cannot automatically convert to Basic, but Delphi is Pascal-based, so you may be able to run the code blocks there. In fact I don't believe that there is an available converter.

    Remember that Turbo Pascal is for the DOS environment, and VB is for Windows, so any I/O will also require redesigning.

    Author Comment

    Hi guys,
    I have pasal source code.
    I thought that Delphi was able to take tp souce code and at least create the windows version. From there, perhaps I could get to vb
    LVL 14

    Accepted Solution

    If you are not a Delphi programmer you may find it difficult to handle the UI issue that GrahamSkan alluded to.

    Delphi does not convert console applications to windows applications.

    Delphi should be able to compile the Pascal code that you have (as a console application) however, only the logic will be useful as almost all user interface issues and probably most data storage issues will need to be re-written.

    I think the shortest route from TP to VB is to simply read the logic portions of your source files and interpret them by hand to VB. The good news is that Pascal reads like a book. In other words it could be worse you could be trying to convert C code. :P

    Author Closing Comment

    Thanks Steve

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Introduction While answering a recent question ( in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
    If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    728 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

    23 Experts available now in Live!

    Get 1:1 Help Now