Difference between revisions of "SDK Function Levels"
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 1: | Line 1: | ||
The API (Applications Programming Interface) provides a library of 'C' functions that are divided into four different levels. | The API (Applications Programming Interface) provides a library of 'C' functions that are divided into four different levels. | ||
+ | |||
====Level 1==== | ====Level 1==== | ||
Line 9: | Line 10: | ||
m_result = dbapi_udf ( m_string, m_value) | m_result = dbapi_udf ( m_string, m_value) | ||
</code> | </code> | ||
+ | |||
====Level 2==== | ====Level 2==== | ||
Functions available at [[Overview of Level 2|level 2]] are high-level functions used to execute RECITAL commands and evaluate expressions. | Functions available at [[Overview of Level 2|level 2]] are high-level functions used to execute RECITAL commands and evaluate expressions. | ||
+ | |||
====Level 3==== | ====Level 3==== | ||
Line 38: | Line 41: | ||
|- | |- | ||
|} | |} | ||
+ | |||
====Level 4==== | ====Level 4==== |
Revision as of 13:26, 30 March 2009
The API (Applications Programming Interface) provides a library of 'C' functions that are divided into four different levels.
Level 1
Functions available at level 1 are for use with parameter passing between Recital and your C function. These are used to check the type and number of parameters passed and to convert Recital data types to C data types. A 'C' UDF which uses the RECITAL/API can have a variable number of parameters passed to it from Recital. For example:
store "RECITAL" to m_string store 7.0 to m_value m_result = dbapi_udf ( m_string, m_value)
Level 2
Functions available at level 2 are high-level functions used to execute RECITAL commands and evaluate expressions.
Level 3
Functions available at level 3 are low-level functions separated into the following category dependent usage.
TYPE | DESCRIPTION |
---|---|
ARRAY | Recital array access |
BLOB | Operations on binary large objects |
CHARACTER | Character string functions |
CURRENCY | Currency functions |
DATE | Date, datetime and time functions |
DBF | Database I/O operations |
FIELD | Field I/O operations |
MEMO | Memo I/O operations |
MEMVAR | Recital memory variable operations |
Level 4
Functions available at [[Overview of Level 4|level 4] are for use with building classes and managing objects.