Internally defined structures

DEFRECORD definitions

JSON_NodeA record to represent a JSON node
KCML_BUILD_GETLIBRARIES_RECFor KCML_Build_GetLibraries() which returns an array of these structures describing the available libraries in Build.xml
KCML_BUILD_GETSRCLIST_RECFor KCML_Build_GetSrcList()
KCML_BinaryProgramInfoInformation from 'KCML_GetBinaryProgramInfo
KCML_BuildInfoRecord returned by 'KCML_Build_GetInfo() containing build/version information
KCML_CHROMIUMVERSIONStructure returned by 'KCML_Get_ChromiumVersion
KCML_COVERAGE_ENTRYCoverage information
KCML_CallStatA record containing the name of a function and a count of how many times it has been called
KCML_CompilerRetrieve information about the compiler
KCML_DEFENUM_Entry'_Enum_* DEF ENUM
KCML_DEFRECORD_Entry'_Enum_* and '_Find_* record
KCML_Debug_ReturnStackEntryA return stack entry from 'KCML_Debug_GetReturnStackEx()
KCML_Defsub_HookInfoState record passed to a subroutine callback function
KCML_EXCEPTION_LOG'KCML_Exception_Log record
KCML_FILE_STATFor 'KCML_File_Stat and KI_STAT
KCML_FORM_EVENTINFOKCML Form event info
KCML_FORM_PROPERTYINFOKCML Form property info
KCML_FORM_RAISEEVENTRecord passed to 'KCML_Form_Set_RaiseEvent_Callback callback function
KCML_FORM_SETRAISEEVENTRecord passed to KCML_Form_Set_RaiseEvent_Callback function
KCML_HTTP_COOKIE_DETAILSCookie details for netscape style cookies
KCML_ICON_INFOImage information for images in an icon
KCML_ICON_MAPPING'KCML_Icon_Mapping list
KCML_InvokeSpyInfoSpy_
KCML_KconfACLRetrieve information about an Access Control List
KCML_KconfAliasRetrieve information about an alias
KCML_KconfEnvEnvironment variable list
KCML_KconfServiceRetrieve information about services
KCML_KconfSoapRetrieve information about a SOAP service
KCML_KconfSvcInfoRetrieve detailed information about a service
KCML_KconfTableSpaceRetrieve information about an table space
KCML_MACHINEKCML $MACHINE structure
KCML_MSIVERSIONStructure returned by 'KCML_Get_MSIVersion() and KCMLGetInstalledProductInfo()
KCML_MachineInfoRecord returned by 'KCML_Machine_GetInfo() containing information about a host machine
KCML_MemoryPoolRecord returned by 'KCML_Debug_GetPools() containing information about a active memory pools
KCML_OCXHookInfoState record passed to an OCX callback function
KCML_OCXHookSetupRecord passed to 'KCML_SetOCXHook
KCML_OPTIONSKCML $OPTIONS structure
KCML_OPTIONS_HASHKCML $OPTIONS # structure
KCML_OPTIONS_LISTKCML $OPTIONS LIST structure
KCML_OPTIONS_RUNKCML $OPTIONS RUN structure
KCML_POLLSETAn 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_PSTATKCML $PSTAT structure
KCML_Panic_HookInfoState record passed to a panic callback function
KCML_PerfMetricRecA record describing a performance metric
KCML_PerfMetric_Param_RecA record describing a performance metric parameter
KCML_PerfTimerRecA record to store the result of an execution timer.
KCML_ProcInfoRetrieve information about a process
KCML_RGBAPixel information for image
KCML_SEARCH_REC_KEY'KCML_Search_Record key specifier
KCML_SESSION_SETTIMEOUTRecord passed to KCML_Session_SetTimeout function
KCML_SESSION_TIMEOUTRecord passed to KCML_Session_Timeout callback function
KCML_SOAP_HookInfoState record passed to the callback routine that is executed prior to a SOAP method
KCML_SORTKEYSORT key descriptors
KCML_SORT_REC_KEY'KCML_Sort_Record key specifier
KCML_Socket_SetSSLA record containing some options for "KCML_Socket_SetSSL
KCML_TERMINFOStructure return by 'KCML_Get_TermInfo
KCML_TEST_INFOError object passed to the test callback function
KCML_Test_DefTestInfoRecord supplied by 'KCML_Test_EnumerateDefTests to a callback containing information about a DEFTEST.
KCML_Test_FormsCallbackA record containing info that is passed to the test forms callback function
KDB_CATALOGStructure of the KDB system catalog
KDB_COLUMNStructure of the column info returned by KI_COLUMNS
KDB_DATABASEStructure of the system table K$DATABASES. This is a view of the databases in the DB cluster.
KDB_FailOver_HookInfoState record passed to a failover callback routine
KDB_INFO_COLKDB index column information
KDB_INFO_CONNKDB connection information
KDB_INFO_HANDKDB open table summary information (type 7 superset)
KDB_INFO_IDXKDB table index information
KDB_INFO_WSXKDB Word search index information
KDB_INFO_WS_COLKDB Word search index component column information
KDB_ROWIDKDB rowid
KDB_SESSIONSStructure of the system table K$SESSIONS. This is a dynamic view of the sessions on the cluster.
KDB_TRANS_HookInfoState record passed to a WHILE TRANS callback routine

$DECLARE definitions

'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

$DECLARE definitions



$DECLARE 'KCMLObjectExport(ObjectType$, interface$, wsdl$, endpoint$)

Defines the interface for a COM or SOAP server

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

ArgumentFormatPurpose
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.


More info

$DECLARE 'KCMLObjectGetLastError(ObjectType$, nError)

Returns the last object error

ArgumentFormatPurpose
ObjectType$STR()Must be "SOAP or COM"
nErrorRETURN INT()Returns last error
// $DECLARE 'KCMLObjectGetLastError(ObjectType$, nError)
// Returns the last object error
$DECLARE 'KCMLObjectGetLastError(STR(), RETURN INT()) = "*"

This executes on the server.


More info

$DECLARE 'KCMLObjectGetLastErrorString(ObjectType$, sError$)

Returns the last object error string

ArgumentFormatPurpose
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.


More info

$DECLARE 'KCMLObjectGetErrorString(ObjectType$, nError, sError$)

Returns the object error string given the object error

ArgumentFormatPurpose
ObjectType$STR()Must be "SOAP or COM"
nErrorINT()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.


More info

$DECLARE 'KCMLObjectGetUsername(ObjectType$, user$, bCheckUser)

Returns the user authorization details for a SOAP request

ArgumentFormatPurpose
ObjectType$STR()Must be "SOAP"
user$RETURN STR()Returns userid
bCheckUserINT()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.


More info

$DECLARE 'KCMLStringMD5(buffer$, hash$)

Returns an MD5 hash for a buffer. Now obsolete and replaced by 'KCML_MD5(text$, BYREF digest$)

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

ArgumentFormatPurpose
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.



$DECLARE 'KCMLStartExecTimer()

Start an execution timer

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.



$DECLARE 'KCMLStopExecTimer(timerId, pollTimer, tExec$)

Returns the execution time.

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.

ArgumentFormatPurpose
timerIdINT()The timer's identifier
pollTimerINT()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.