1. Dev Saravanan
  2. PowerBuilder
  3. Thursday, 10 September 2020 07:34 AM UTC


How to generate PBD? Might be a basic question. But I would like to make sure that I am doing it correctly. 

I usually compile all the PBLs in the target:

  1. Select the PBL.
  2. Select all the objects.
  3. Click regenerate.

Then I would take Build.

  1. Right click the PBL.
  2. And choose 'Build Runtime Library...'

Is this the way to generate PBDs. If so then, what is use of 'Full Build' and 'Incremental Build'.

Please advice.

Thanks in advance.

Olan Knight Accepted Answer Pending Moderation
  1. Thursday, 10 September 2020 19:16 PM UTC
  2. PowerBuilder
  3. # 1

Most people use the technique Kevin described for a FULL BUILD. Otherwise, the one at a time method you described works just fine.

Create a PROJECT FILE/OBJECT in the application. 

Open the project and on the second tabpage click the SELECT ALL button.

If you want to create PBDs for the entire app, then DEPLOY the project by clicking the DEPLOY toolbar icon:
(second from the left on the second row)

When finished, every PBL checked on the second tablepage will have a PBD created.

Good Luck,


  1. Dev Saravanan
  2. Friday, 11 September 2020 09:38 AM UTC
I tried building with 'DEPLOY'. But it errors stating - 'Invalid variable declaration initialization'. This does not occur while I took individual build for each PBL. Any advice on how this can be resolved?
  1. Helpful
  1. Olan Knight
  2. Friday, 11 September 2020 14:29 PM UTC
Interesting! If you get NO error generating with the Build Runtime File option on the PBL(s) that contain(s) the application and project files, but DO get an error when running DEPLOY from the project file, then something is definitely incorrect!

With no other information, I'd turn on TRACING and try again.

If that fails, you may need to step the code in BEDUG mode to see where it is sying.

If all else fails, reinstall PowerBuilder.

Good Luck!
  1. Helpful
There are no comments made yet.
Kevin Ridley Accepted Answer Pending Moderation
  1. Thursday, 10 September 2020 14:49 PM UTC
  2. PowerBuilder
  3. # 2

You have 2 choices to generate PBD's.  You can create a project object File>New>Project>Application (or Application Wizard).  This builds the EXE and all PBD's.  The other way to generate an individual PBD is like you stated above.  At a high level, full build regenerates every object, incremental only regenerates changed objects and references to changed objects.

  1. Kevin Ridley
  2. Thursday, 10 September 2020 14:51 PM UTC
Actually you could use Orcascript too, so there's 3 ways.
  1. Helpful
  1. Dev Saravanan
  2. Friday, 11 September 2020 09:35 AM UTC
Thank you Kevin..
  1. Helpful
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.