-
Rolf Knaden
- PowerBuilder
- Wednesday, 25 February 2026 10:04 AM UTC
Hi.
I am migrating our application from PB2019 to PB2025.
I am using function LibraryExport( libraryname, objectname, objecttype ) to read the datawindow syntax from a pbd.
When I supply libraryname with a pbd-name without path (e.g. "custrep.pbd"), then the function only reads the first character ("r") of the datawindow syntax from the library.
Whereas when supplying the full path to that pbd (e.g. "C:\.....\custrep.pbd"), then the full syntax of the datawindow is read from the library.
That was not the case in PB2019.
And in the help section, you can read "If you do not specify a full path, LibraryDirectory uses the operating system's standard file search order to find the file."
That is definitely not the case.
Curiously, function LibraryDirectory ( libraryname, objecttype ) function works correctly and returns an error-free list of objects in the pbd even, if no path is supplied for that pbd.
Does anyone experience the same?
Seems to be a bug!?
Thanks.
Rolf
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.