Progress
Report Builder
User’s Guide
DLLFUNC
Lets you call a DLL-based function from within a report. You might use DLLFUNC when you want to write a DLL-based function to perform an operation that Report Builder’s functions do not support, such as a trigonometric operation.
SYNTAX
dll-name
The name of the DLL that contains the function.
function-name
The name of the function.
string
A character expression (a constant, field name, or expression that results in a character value) that is passed to the DLL function.
EXAMPLEFor example, the calculated field expression:
uses the STRING function to convert the value of Distance into a character string and passes the string value to the MILES-KILO function in CONVERTS.DLL, which converts the distance in miles to kilometers.
DLLFUNC expects a Boolean return value from the called DLL function: TRUE to indicate the function executed successfully; FALSE to indicate an error. If the DLL returns a FALSE value, DLLFUNC returns an error string. If the DLL function executes successfully, it should overwrite its input string with the output string to be returned by the Report Builder DLLFUNC. Report Builder passes the input and output strings using an 8,000-byte buffer.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |