BBx to Notepad

Started by MikeyBoy, October 27, 2021, 03:08:09 AM

Previous topic - Next topic

MikeyBoy

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.

Michael.

EVa

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

James Zukowski

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.
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

Mike King

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.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

MikeyBoy

Thank you to all of you who replied. Really appreciate the help.