|When PowerBuilder creates your EXE it checks all objects to see if they
have been referenced within the course of the application execution. If they are not it
does not include the object in the EXE. When you are trying to build a single standalone
EXE this can be a problem.
You can force PowerBuilder to include datawindows but dynamic
object such as userobjects and windows are a problem. But with a simple trick we can get
PowerBuilder to include whatever we want! Goto the application painter and declare an
application function called dummy_exe() then declare local variables for each object you
want to include.
Example from PBDelta
This is an example of such a function I created for my utility PBDelta.