![]() |
||
PowerbuilderI have written a few routines which visitors are free to use as they want (However please do not publish on other websites - please link to this page). They are described below and can be downloaded from this page. All routines were developed using Powerbuilder 5.0 and tested on Windows 95, 98 and NT version 4 operating systems. However, there should not be any problem calling these routines with later versions of Powerbuilder, other development environments and later versions of operating system. Please contact me if you have any comments, questions or suggestions relating to these routines. Run DLL Back to TopThis is a self-contained Windows DLL which contains a single function called Run which can be accessed from within a standard Powerbuilder application via either a local or global external function call. e.g. Powerbuilder external function declaration: Instantiation: PurposeSimilar to Powerbuilder's own Run function, this function provides greater flexibility over the window state of the initiated program. Additional window states include Hidden, Shown but without being activated and Minimised but not activated. The definitive list of window states is shown below:
Return ValueReturns 1 when the specified command has terminated. Returns -1 if it is unable to run the specified command. Click here to download run.dll RunWait DLL Back to TopSimiliar to the enhanced Run DLL described above, this DLL contains a single function called RunWait which, when called, waits until the specified command completes before passing back its return value. e.g. Powerbuilder external function declaration: Instantiation: Return ValueReturns the return value from the specified command. Returns -1 if it is unable to run the specified command. Click here to download runwait.dll Notes Back to TopIf you get a "Bad runtime function reference" error at the point of calling either the Run or RunWait function, the most likley cause is that Powerbuilder has failed to locate the run.dll or runwait.dll file respectively. Please ensure that the appropiate DLL file is located either in the same directory as your application, or in a directory mentioned in your PC's PATH environment variable. Please contact me if you continue to experience difficulties. |
||||||||||||||
|
||||||||||||||
| < Home > | Back to Top |