Progress
External Program
Interfaces


RUN Statement Parameter Data Types

Note that while shared library parameter definitions use a special set of data types, the corresponding expressions, fields, and variables passed in the RUN statement have standard Progress data types. You must ensure that your RUN statement parameters have data types that are compatible with their corresponding shared library parameter definitions. Table 5–3 lists each shared library parameter data type and the Progress data type that is compatible with it in a RUN statement.

Table 5–3: Shared Library and RUN Statement Parameter Compatibilities  
Shared Library Parameter
Data Types
RUN Parameter
Data Types
BYTE
INTEGER
SHORT
INTEGER
UNSIGNED-SHORT
INTEGER
LONG
INTEGER
FLOAT
DECIMAL
DOUBLE
DECIMAL
CHARACTER
CHARACTER
MEMPTR
MEMPTR

CAUTION: For CHARACTER parameters, Progress always passes the routine a pointer to the character or character string value rather than the value itself. If the routine modifies the value, it can also modify Progress memory outside the bounds of the CHARACTER value, with unpredictable results. To avoid this kind of memory fault, pass the character string as a MEMPTR parameter instead. For more information, see the "Passing CHARACTER Values To Shared Library Routines" section.

Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095