Difference between revisions of "ISCURRENCY()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) m (Text replace - "lianjaapi.h" to "lianja_api.h") |
||
Line 7: | Line 7: | ||
==SYNOPSIS== | ==SYNOPSIS== | ||
<code lang="c"> | <code lang="c"> | ||
− | #include " | + | #include "lianja_api.h" |
int ISCURRENCY(order) | int ISCURRENCY(order) | ||
Line 35: | Line 35: | ||
<code lang="c"> | <code lang="c"> | ||
− | #include " | + | #include "lianja_api.h" |
check_curr() | check_curr() |
Latest revision as of 07:39, 11 April 2013
PURPOSE
Is the parameter a currency data type
SYNONYM
None
SYNOPSIS
#include "lianja_api.h" int ISCURRENCY(order) <input parameters> int order; /* Placement in actual parameter list */ <output parameters> none
DESCRIPTION
The function checks if the specified parameter is a currency data type. It returns 1 if true, or 0 if false. The order specifies the actual placement in the parameter list.
EXAMPLE
The following example returns .T. if the first parameter passed is a currency value, or .F. otherwise.
Example Lianja script:
m_values = $5 m_iscurr=check_curr(m_values) return
Example 'C' function:
#include "lianja_api.h" check_curr() { _retl(ISCURRENCY(1)); }