Internally defined structures
JSON_Node | A record to represent a JSON node |
KCML_BUILD_GETLIBRARIES_REC | For KCML_Build_GetLibraries() which returns an array of these structures describing the available libraries in Build.xml |
KCML_BUILD_GETSRCLIST_REC | For KCML_Build_GetSrcList() |
KCML_BinaryProgramInfo | Information from 'KCML_GetBinaryProgramInfo |
KCML_BuildInfo | Record returned by 'KCML_Build_GetInfo() containing build/version information |
KCML_CHROMIUMVERSION | Structure returned by 'KCML_Get_ChromiumVersion |
KCML_COVERAGE_ENTRY | Coverage information |
KCML_CallStat | A record containing the name of a function and a count of how many times it has been called |
KCML_Compiler | Retrieve information about the compiler |
KCML_DEFENUM_Entry | '_Enum_* DEF ENUM |
KCML_DEFRECORD_Entry | '_Enum_* and '_Find_* record |
KCML_Debug_ReturnStackEntry | A return stack entry from 'KCML_Debug_GetReturnStackEx() |
KCML_Defsub_HookInfo | State record passed to a subroutine callback function |
KCML_EXCEPTION_LOG | 'KCML_Exception_Log record |
KCML_FILE_STAT | For 'KCML_File_Stat and KI_STAT |
KCML_FORM_EVENTINFO | KCML Form event info |
KCML_FORM_PROPERTYINFO | KCML Form property info |
KCML_FORM_RAISEEVENT | Record passed to 'KCML_Form_Set_RaiseEvent_Callback callback function |
KCML_FORM_SETRAISEEVENT | Record passed to KCML_Form_Set_RaiseEvent_Callback function |
KCML_HTTP_COOKIE_DETAILS | Cookie details for netscape style cookies |
KCML_ICON_INFO | Image information for images in an icon |
KCML_ICON_MAPPING | 'KCML_Icon_Mapping list |
KCML_InvokeSpyInfo | Spy_ |
KCML_KconfACL | Retrieve information about an Access Control List |
KCML_KconfAlias | Retrieve information about an alias |
KCML_KconfEnv | Environment variable list |
KCML_KconfService | Retrieve information about services |
KCML_KconfSoap | Retrieve information about a SOAP service |
KCML_KconfSvcInfo | Retrieve detailed information about a service |
KCML_KconfTableSpace | Retrieve information about an table space |
KCML_MACHINE | KCML $MACHINE structure |
KCML_MSIVERSION | Structure returned by 'KCML_Get_MSIVersion() and KCMLGetInstalledProductInfo() |
KCML_MachineInfo | Record returned by 'KCML_Machine_GetInfo() containing information about a host machine |
KCML_MemoryPool | Record returned by 'KCML_Debug_GetPools() containing information about a active memory pools |
KCML_OCXHookInfo | State record passed to an OCX callback function |
KCML_OCXHookSetup | Record passed to 'KCML_SetOCXHook |
KCML_OPTIONS | KCML $OPTIONS structure |
KCML_OPTIONS_HASH | KCML $OPTIONS # structure |
KCML_OPTIONS_LIST | KCML $OPTIONS LIST structure |
KCML_OPTIONS_RUN | KCML $OPTIONS RUN structure |
KCML_POLLSET | An array of these records can be passed to 'KCML_poll(). Each of the streams will be tested for the required statuses, for hangup or for an error. The status will be returned as an OR of KCML_POLLFLAG flags. |
KCML_PSTAT | KCML $PSTAT structure |
KCML_Panic_HookInfo | State record passed to a panic callback function |
KCML_PerfMetricRec | A record describing a performance metric |
KCML_PerfMetric_Param_Rec | A record describing a performance metric parameter |
KCML_PerfTimerRec | A record to store the result of an execution timer. |
KCML_ProcInfo | Retrieve information about a process |
KCML_RGBA | Pixel information for image |
KCML_SEARCH_REC_KEY | 'KCML_Search_Record key specifier |
KCML_SESSION_SETTIMEOUT | Record passed to KCML_Session_SetTimeout function |
KCML_SESSION_TIMEOUT | Record passed to KCML_Session_Timeout callback function |
KCML_SOAP_HookInfo | State record passed to the callback routine that is executed prior to a SOAP method |
KCML_SORTKEY | SORT key descriptors |
KCML_SORT_REC_KEY | 'KCML_Sort_Record key specifier |
KCML_Socket_SetSSL | A record containing some options for "KCML_Socket_SetSSL |
KCML_TERMINFO | Structure return by 'KCML_Get_TermInfo |
KCML_TEST_INFO | Error object passed to the test callback function |
KCML_Test_DefTestInfo | Record supplied by 'KCML_Test_EnumerateDefTests to a callback containing information about a DEFTEST. |
KCML_Test_FormsCallback | A record containing info that is passed to the test forms callback function |
KDB_CATALOG | Structure of the KDB system catalog |
KDB_COLUMN | Structure of the column info returned by KI_COLUMNS |
KDB_DATABASE | Structure of the system table K$DATABASES. This is a view of the databases in the DB cluster. |
KDB_FailOver_HookInfo | State record passed to a failover callback routine |
KDB_INFO_COL | KDB index column information |
KDB_INFO_CONN | KDB connection information |
KDB_INFO_HAND | KDB open table summary information (type 7 superset) |
KDB_INFO_IDX | KDB table index information |
KDB_INFO_WSX | KDB Word search index information |
KDB_INFO_WS_COL | KDB Word search index component column information |
KDB_ROWID | KDB rowid |
KDB_SESSIONS | Structure of the system table K$SESSIONS. This is a dynamic view of the sessions on the cluster. |
KDB_TRANS_HookInfo | State record passed to a WHILE TRANS callback routine |
'KCMLObjectExport() | Defines the interface for a COM or SOAP server |
'KCMLObjectGetErrorString() | Returns the object error string given the object error |
'KCMLObjectGetLastError() | Returns the last object error |
'KCMLObjectGetLastErrorString() | Returns the last object error string |
'KCMLObjectGetUsername() | Returns the user authorization details for a SOAP request |
'KCMLStartExecTimer() | Start an execution timer |
'KCMLStopExecTimer() | Returns the execution time. |
'KCMLStringMD5() | Returns an MD5 hash for a buffer. Now obsolete and replaced by 'KCML_MD5(text$, BYREF digest$) |
For generic buffer types see generic buffer types
This defines the interface for a COM or SOAP server. For COM server calls the last two arguments should be zero or blank.
Returns: a boolean, TRUE for success, FALSE for bad arguments
Argument | Format | Purpose |
---|---|---|
ObjectType$ | STR() | Must be "SOAP or COM" |
interface$ | STR() | Interface prefix for DEFSUBs |
wsdl$ | STR() | (SOAP) if non-blank the WSDL will be written to this file |
endpoint$ | STR() | (SOAP) URL for the server |
// $DECLARE 'KCMLObjectExport(ObjectType$, interface$, wsdl$, endpoint$) // Defines the interface for a COM or SOAP server $DECLARE 'KCMLObjectExport(STR(), STR(), STR(), STR()) = "*"
This executes on the server.
Argument | Format | Purpose |
---|---|---|
ObjectType$ | STR() | Must be "SOAP or COM" |
nError | RETURN INT() | Returns last error |
// $DECLARE 'KCMLObjectGetLastError(ObjectType$, nError) // Returns the last object error $DECLARE 'KCMLObjectGetLastError(STR(), RETURN INT()) = "*"
This executes on the server.
Argument | Format | Purpose |
---|---|---|
ObjectType$ | STR() | Must be "SOAP or COM" |
sError$ | RETURN STR() | Returns last error string |
// $DECLARE 'KCMLObjectGetLastErrorString(ObjectType$, sError$) // Returns the last object error string $DECLARE 'KCMLObjectGetLastErrorString(STR(), RETURN STR()) = "*"
This executes on the server.
Argument | Format | Purpose |
---|---|---|
ObjectType$ | STR() | Must be "SOAP or COM" |
nError | INT() | Error number |
sError$ | RETURN STR() | Returns error string |
// $DECLARE 'KCMLObjectGetErrorString(ObjectType$, nError, sError$) // Returns the object error string given the object error $DECLARE 'KCMLObjectGetErrorString(STR(), INT(), RETURN STR()) = "*"
This executes on the server.
Argument | Format | Purpose |
---|---|---|
ObjectType$ | STR() | Must be "SOAP" |
user$ | RETURN STR() | Returns userid |
bCheckUser | INT() | If TRUE KCML will authenticate |
// $DECLARE 'KCMLObjectGetUsername(ObjectType$, user$, bCheckUser) // Returns the user authorization details for a SOAP request $DECLARE 'KCMLObjectGetUsername(STR(), RETURN STR(), INT()) = "*"
This executes on the server.
Uses Rivest's MD5 algorithm (see RFC1321) to generate a 128 bit hash of a document. It is mathematically very unlikely that two different strings will generate the same message digest. This is very much more secure than a traditional CRC checksum but computationally more expensive to derive.
Returns: a boolean, TRUE for success, FALSE for bad arguments
Argument | Format | Purpose |
---|---|---|
buffer$ | STR() | Buffer to be hashed. Trailing blanks clipped unless enclosed in STR() or FLD(). |
hash$ | RETURN DIM() | Returns the MD5 digest (must be 16 bytes or more) |
// $DECLARE 'KCMLStringMD5(buffer$, hash$) // Returns an MD5 hash for a buffer. Now obsolete and replaced by 'KCML_MD5(text$, BYREF digest$) $DECLARE 'KCMLStringMD5(STR(), RETURN DIM()) = "*"
This executes on the server.
Starts a millisecond timer that counts the time spent executing code. The timer is suspended when waiting for mouse/keyboard input and when executing $BREAK and $IF statements.
Returns: Returns the ID of the new timer, zero for failure.
// $DECLARE 'KCMLStartExecTimer() // Start an execution timer $DECLARE 'KCMLStartExecTimer() = "*"
This executes on the server.
Returns the number of milliseconds of execution time, in $TIMESTAMP format, since the timer was started with 'KCMLStartExecTimer(). Time spent waiting on input is not counted. If pollTimer is FALSE the timer is stopped and the timer's ID is no longer valid.
Returns: a boolean, TRUE for success, FALSE for bad argumentents, or if the timer ID is not valid.
Argument | Format | Purpose |
---|---|---|
timerId | INT() | The timer's identifier |
pollTimer | INT() | If TRUE return the execution time but keep the timer running. |
tExec$ | RETURN DIM() | Execution time |
// $DECLARE 'KCMLStopExecTimer(timerId, pollTimer, tExec$) // Returns the execution time. $DECLARE 'KCMLStopExecTimer(INT(), INT(), RETURN DIM()) = "*"
This executes on the server.