PxPlus User Forum

Twitter Twitter Twitter

Author Topic: BBx to Notepad  (Read 1512 times)

MikeyBoy

  • New Member
  • *
  • Posts: 2
    • View Profile
BBx to Notepad
« 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.

Michael.

EVa

  • Gold Member
  • ****
  • Posts: 52
    • View Profile
    • EDIAS
Re: BBx to Notepad
« Reply #1 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

James Zukowski

  • Diamond Member
  • *****
  • Posts: 296
    • View Profile
Re: BBx to Notepad
« Reply #2 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.
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

Mike King

  • Diamond Member
  • *****
  • Posts: 3810
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: BBx to Notepad
« Reply #3 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.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

MikeyBoy

  • New Member
  • *
  • Posts: 2
    • View Profile
Re: BBx to Notepad
« Reply #4 on: October 27, 2021, 07:11:04 PM »
Thank you to all of you who replied. Really appreciate the help.