Advanced PowerBuilder

HomePrevious Lesson: External Functions
Next Lesson: Declaring External Functions

Introduction

External functions are functions that are written in languages other than PowerScript and are stored in dynamic link libraries (DLL's). These functions could be written in language such as C/C++, Pascal, etc...

You may want to use external functions, typically in the following situations:

A DLL is a file containing executable MS-Windows code. To use an external DLL in PowerBuilder, the DLL must be written using the Pascal calling sequence and the datatypes required to pass to and from the DLL must have an appropriate counterpart in PowerScript. Before you call an external function, make sure to go through the external function's documentation to find out the function syntax, parameters and return values. Even before you start using the external function, you need to declare the external function in PowerBuilder.
HomePrevious Lesson: External Functions
Next Lesson: Declaring External Functions