You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
I need to migrate a very old Turbo Basic program to a Power Basic Console Compiler environment. (I Know that this is old stuff! ) but i need to find out if there are any tools that can help me do this. Even if they can help me 50% of the way...then at least it will make it easier to do the rest.
This is a curiosity item.
Had to check the TB manual to see if Functions and Procedures were supported it's been so long.
I suggest opening a NEW file, putting your code into the PBMAIN function, including the gosubs, but not your Functions and Procedures. Place them outside the PBMAIN function.
And then try running and see what errors are generated.
How big are these programs?
Can you post a TB file, as an attachment perhaps, so others, including myself can toy with it?
Rod
In some future era, dark matter and dark energy will only be found in Astronomy's Dark Ages.
Turbo Basic as probably you know was writen by Bob Zale, and so is more than similar to PB-DOS, in fact is almost 100% compatible.
In my own experience, to port PB-DOS code to PBCC is quite easy. Right now I am porting all my old text programs to PBCC, and my graphic PB-DOS programs to PBCC5's Graphic Window.
If the UI is just a bunch of LOCATE and PRINT statements, all you should have to change is the keyboard I-O, since PB/CC has no "INPUT" and I never saw whole lot of keyboard LINE INPUT in anyone's MS-DOS code.
i.e, it's already close to what you want.
The procedural code should be about 90% OK 'as is'.
Of course, now all you have is old code with a Botox treatment.
If the UI is just a bunch of LOCATE and PRINT statements, all you should have to change is the keyboard I-O, since PB/CC has no "INPUT" and I never saw whole lot of keyboard LINE INPUT in anyone's MS-DOS code.
I was just starting a project today... it's for a command line utilty a client wants.
I had it started using PB/WIN 9.0.1... but after a few posts rigt here in this thread, I changed to PB/CC 5.01.
So what's the first thing that I encountered?
In 5.0.1, either STDERR changed without an "IMPROVED!" entry in the help file or a note in history.txt, or the help file was not fixed even though support told me two months ago the bug I found was in the help file, not the compiler.
(Thru 5.0.0, STDERR isnot redirectable, help file statements notwithstanding)
When I use PB/Win for these, I have to use my own STDOUT and STDERR functions. I know how those work.
But I'm gonna tough it out with CC for this piece of software anyway.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment