1. William Kotaska
  2. PowerBuilder
  3. Wednesday, 9 June 2021 16:30 PM UTC

Greetings,

 

My boss has requested that I extract all of the source code from a PowerBuilder application to a separate single file for him to review.  Does PowerBuilder have an option or a utility application to extract all the source code from a workspace?

 

Thanks,

 

Bill

 

 

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 10 June 2021 14:46 PM UTC
  2. PowerBuilder
  3. # 1

Another great (and free) tool you could use is "pblpeeper".

https://pbl-peeper.software.informer.com/

 

Comment
There are no comments made yet.
Benjamin Gaesslein Accepted Answer Pending Moderation
  1. Thursday, 10 June 2021 08:17 AM UTC
  2. PowerBuilder
  3. # 2

Hi William,

1. run cmd

2. cd to the root folder of your workspace

2. use this command:

for /F "usebackq" %f in ( `dir /b /s *.sr*` ) do type "%f" >> output.txt

 

This will write the contents of all PB source files to output.txt.

[If you're for some reason not using source control, you'll have to export all sources from the PBLs first in order for this to work.]

Of course, "reviewing" the code this way is still a rather quixotic endeavour. But there you have it. :)

Comment
  1. René Ullrich
  2. Thursday, 10 June 2021 08:23 AM UTC
Only works if objects are already exported (e.g. if workspace is under source control)!
  1. Helpful
  1. Benjamin Gaesslein
  2. Thursday, 10 June 2021 08:25 AM UTC
Correct; otherwise the sources will have to be exported first.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 9 June 2021 18:05 PM UTC
  2. PowerBuilder
  3. # 3

Hi William;

  Another alternative suggestion to what Roland's great advice was about using Native Source Control is to use the Visual Expert product for this task ... http://en.wikipedia.org/wiki/Visual_Expert

Regards ... Chris

Comment
  1. Miguel Leeuwe
  2. Thursday, 10 June 2021 14:43 PM UTC
I think Roland also suggested to use Visual Expert.

regards.
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 9 June 2021 16:44 PM UTC
  2. PowerBuilder
  3. # 4

PBNative Source Control will export all the objects into individual files. There are LibraryDirectory and LibraryExport functions that could be used to create a specialized app to export all objects into one file.

This seems like a waste of his time and yours. Depending on the size of the applications and how many hours a day he spends on reviewing, it could take months or years to look at every line of code.

Is there something specific he is looking for? Perhaps a tool like Visual Expert would be a good idea.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.