Home | About SQeeL | Document | DownLoad | Mail Japanese
Home > Document > SQeeL Online Manual >

5. Function

A function is a set of tasks that are performed by passing parameters to the function and returning a value.
A function is called into action by its identifying name. Here are SQeeLfs functions.
SQeeL Functions
System and User-Defined Functions
Calling Functions
Arguments
System Functions

Following functions are available as the system build-in functions in SQeeL program.

Date and Time Functions
    These functions allow you to get the current date and time. They format the date and time in different ways.
String Functions
    These functions manipulate strings such as replacing, searching, getting string length.
File Functions
    These functions manage file input/output.
OS Functions
    These functions allow you to execute operating system commands.
Database Functions
    These functions allow you to use Oracle database server effectively.
CGI Functions
    These functions are only available when running as CGI program.
For more information about calling functions and return values, see gSQeeL Function Referenceh.


Top
User-Defined Functions

You can create a user-defined function that has the form that starts with function statement and ends with endfunction statement. You can write any SQeeL codes in it.
Declaring User-Defined Functions
To declare a function, it must start with function statement and end with endfunction statement.
To specify multiple dummy arguments, they need to be separated by a comma (,).
You cannot declare other functions in a function definition.
The return statement must be used in the user-defined function to pass the result back to main program that calls the user-defined function.

function [function_name] ([dummy_argument1], [dummy_argument2], ..)
        Function process
endfunction



Top
Functions
Dummy Arguments
Processing Block ( SQeeL Block)
Return Value

© Insight Technology, Inc. 1996-2004 All Rights Reserved.