PxPlus User Forum

Main Board => Discussions => Off Topic => Topic started by: MikeyBoy on October 27, 2021, 03:08:09 AM

Title: BBx to Notepad
Post by: MikeyBoy on October 27, 2021, 03:08:09 AM
Greetings from Melbourne Australia.

I am Michael and I used to work at Computer Resolutions with Geoff Pfiefer, if anyone remembers him.

I now work for a company that uses BBx4 and are migrating to different software. My IT Manager wants to know if anyone has a way of copying BBx programs into Notepad (or any text based software). There are only 2 BBx programmers working there and we are fairly busy with getting the data from the files and verifying all of that.

At the moment, when he wants a program (he has zero knowledge of BBx, but thinks he is a guru) we have to load the program, copy & paste. Slow, but it works.

Hello to anyone who I met at Las Vegas when I went for the user forum.

Thanks in advance.

Title: Re: BBx to Notepad
Post by: EVa on October 27, 2021, 08:32:41 AM
Call "*cmd/system/loadbbx","name_of_bbx_program"

will transfer a BBx program to PxPlus program memory and

Call "*cmd/system/clip","1-64999"

will transfer the PxPlus program to the clipboard.  Both commands also work from console mode:

->loadbbx bbx_program
-:clip 1-64999
Title: Re: BBx to Notepad
Post by: James Zukowski on October 27, 2021, 09:46:07 AM
If you're still running under BBx, you can LIST the program directly to a file:

LOAD "progname"
STRING "filename"
OPEN (Chan)"filename"
LIST (Chan)
CLOSE (Chan)

It's then in a text file for review. Standard Notepad open rules apply.
Title: Re: BBx to Notepad
Post by: Mike King on October 27, 2021, 10:42:14 AM
Why not simply do a BBx to PxPlus conversion then look at the PxPlus programs?

While there will some differences as the conversion will have changed things like the BBx function names to their PxPlus equivalents, if you are simply trying to understand what the system did this may be the easiest.

Once in PxPlus you can use our editors to view the code (*E, *it or ED+), or if desired use our SVN IMPORT command have all programs converted to their text equivalent for loading into the editor of your choice.

Lastly, another alternative might be to use the BBx _bundle utility to create a big text file which contains multiple programs.
Title: Re: BBx to Notepad
Post by: MikeyBoy on October 27, 2021, 07:11:04 PM
Thank you to all of you who replied. Really appreciate the help.