PowerBuilder has an unknown number of runtime options that are set by deploying pb.ini with the exe. I say unknown because none of them are in the help file, all public knowledge is in the user forums.
Forum comments I have seen say to put pb.ini in the same folder as the .exe. Myself and others are having a problem with that. If for some reason the pb.ini file cannot be placed in the .exe folder, where can it be placed instead?
I'm guessing that the runtime is using GetPrivateProfileString to get the values. The description of the filename argument is:
The name of the initialization file. If this parameter does not contain a full path to the file, the system searches for the file in the Windows directory.
The question therefore is: Where can the pb.ini file be? There is no way to know if it failed to find it. If I put it in the folder with the runtime and it is in the search path, will it be found?
Using a pb.ini for runtime options is a poor design choice. Several months ago I submitted an enhancement request that would add a set runtime option function. It would have two arguments, the option name and the option value. All possible pb.ini options should be changed to use this new function and be well documented in the help. Even better, make the option name argument an enumerated value.
Example:
SetRuntimeOption(DataStoreUseHwnd!, True)