Hi Appeon Community,
I have troubles to create PBDs with resources in a PBR when the PBR path is relative.
I am using Appeon PowerBuilder 2017 R3 Build 1880.
Please let me know, how I can figure out this issue.
Thank you.
Hi Appeon Community,
I have troubles to create PBDs with resources in a PBR when the PBR path is relative.
I am using Appeon PowerBuilder 2017 R3 Build 1880.
Please let me know, how I can figure out this issue.
Thank you.
Hi Moises;
If you want to have resources in your PBD or EXE that are automatically located at run time, you cannot even use relative folders like "./Resource/xxxx.yyy" for example. The resource must be treated as local. For example: "XXXXX.png". Then including these in a PBR would work 100% so that you do not have to deploy the sub-folder(s) with your EXE.
Once you get into large production Apps though, PBD & DLL files are definitely the way to go. Otherwise, your PBR setups can be quite complicated. Also, to maintain as well.
Regards... Chris
Hi Tobias;
Nothing wrong with the relative paths in the PBR. Just not in your PB App.
Regards ... Chris
Hi Chris,
what is exactly the problem with relative resource-paths in the PBR?
We have restructured our workspace and moved all resources into a subfolder "resource".
The PBR look like this:
resource\save.ong
resource\load.png
The pictures are defined in the source code like this "resource\save.png".
All works fine when we compile that PBR into our resource.pbd, no image needs to be deployed.
Thanks,
Tobi
You absolutely want to embed the images into your application, and NOT have them sitting around in folders.
First, it's faster, but most importantly no one can replace your images with other, perhaps less work friendly ones.
Olan
Hi Roland,
I am using relative path in several objects in my app, for instance:
At the PictureName of an object (Properties)
..\RESOURCES\run.bmp
The Collect.PBR file looks like:
..\RESOURCES\run.bmp
..\RESOURCES\go.bmp
My home directory is:
C:\Work\Apps-local
The images files were copied to my home directory where the PBR, and PBT files are.
Added as System variables:
C:\Work\Apps-local
and
C:\Work\Apps-local\RESOURCES
Unfortunately, the issues persist.
By the way we wouldn't like rename or modify the Picture Name of hundreds objects.
I would put the PBR and the image files referenced in the same folder and add that folder to your system path.