Return to Language Reference home pageHarbour API Explorer
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Only APIs with Curated Documentation are available from this screen.
Most API (functions) description comes from https://github.com/Petewg/harbour-core/wiki. Same content license applies.
To search all Harbour Core, Contribs and Packages APIs, including undocumented ones, go to Source Code Explorer.
Found 10 APIs
AEval(<aArray>,<bBlock>,[<nStart>],[<nCount>]) ➔ <aArray>

Evaluates the <bBlock> for each element into <aArray>, starting from <nStart> and continues until <nCount> elements or all array elements have been evaluated (i.e. processed).
The code-block receives two argument values:
1) the current element being evaluated (value may be of whatever type)
2) the numeric position (index) of that element into the array.
Please note that in case the <nCount> exceeding the array elements the function does not issue any kind of 'out of range' error (practically, it means that the number of evaluations may not necessarily be equal to <nCount>). This behavior stands also for other array functions.


Eval(<bBlock>,[<BlockArg1>],[...]) ➔ <LastBlockValue>

Evaluates a code block and returns the resulting value of the last expression within the block. Returned value can be of any type.
<bBlock> is the code block to be evaluated, while <BlockArg list> is an optional list of arguments to send to the code block before it is evaluated.


FieldBlock(<cFieldName>) ➔ <bFieldBlock>

Returns a code block that, when evaluated, sets or gets the value of the given field. If <cFieldName> does
not exist in the specified work area, it returns an empty block.


FIELDWBLOC => FieldWBlock(<cFieldName>,<nWorkArea>) ➔ <bFieldWBlock>

Returns a code block accessing the field variable <cFieldName> in the <nWorkArea>, or NIL when an illegal parameter is passed. The code block accepts one parameter used to assign a value to the field.


FieldWBlock(<cFieldName>,<nWorkArea>) ➔ <bFieldWBlock>

Returns a code block accessing the field variable <cFieldName> in the <nWorkArea>, or NIL when an illegal parameter is passed. The code block accepts one parameter used to assign a value to the field.


hb_IsBlock(<xExp>) ➔ <lResult>

Determines if <xExp> evaluates to a code-block (valtype "B")


hb_IsEvalItem(<xExp>) ➔ <lResult>

Determines if <xExp> can be evaluated with the Eval() function (f.e. returns .T. for code-blocks and symbols) (valtypes "B" and "S").


hb_macroBlock(<cExpr>) ➔ <bCodeBlock>

Converts the <cExpr> macro expression to codeblock. The created bCodeBlock codeblock does NOT inherit scope and/or attributes of the caller.


MEMVARBLOC => MemvarBlock(<cMemVarName>) ➔ <bMemVarBlock>

MemvarBlock(<cMemVarName>) ➔ <bMemVarBlock>