Progress
Language Tutorial
for Character


Pre-defined Functions

The Progress 4GL provides numerous pre-defined functions that provide shortcuts for accomplishing many common programming tasks. For example, Arithmetic functions (such as RANDOM or EXP) perform mathematical operations on numeric values and Character functions (such as LENGTH and SUBSTRING) manipulate character strings or expressions.

The example below uses the pre-defined, Progress-supplied function for calculating square roots: SQRT( ):

A = 100 + SQRT(9). 

Here, 9 is the input parameter and the SQRT function returns 3, the square root. You could write code with Progress to calculate square roots, but using the prebuilt function is far more convenient.

For more information about pre-defined functions, see the function entries of the Progress Language Reference .


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