Back

Tip 26. Global Functions can be used in Datawindows and Reports.

Although then datawindow comes with a large list of functions, it is sometimes hard or impossible to acheive the results you want.

Datawindows can have computed expressions that use global functions. These functions can do anything such as access global variables, Database queries or loops.

You must make sure that they are in a PBD or DLL or called somewhere else in the applications. This is because the compiler will remove objects that it thinks are unused unless they are in a dymanic library or specified in the powerbuilder resource file (.pbr ).

Unfortunatley you cannot specify a global function in a pbr file so you have to use a dynamic libary.

If you want to run report within Infomaker that use global functions you have to either copy the functions into your infomaker report library or add the PDB or PBL with the functions in to the library search path.

The libary search path for infomaker is found in Design->Options Menu for the Environment painter. You can use either the Style or Query Library Search Path.

   

Added before 01 Jan 2000

Back