Page::LT_evaluate

Description

Evaluate a LabTalk script temporarily setting this page as the active page.

Syntax

BOOL LT_evaluate( LPCSTR lpcszLabTalkExpression, double * lpdbResult )

Parameters

lpcszLabTalkExpression
[input] Pointer to a string containing the expression in LabTalk syntax.
lpdbResult
[output] Pointer to a double value to receive the results.

Return

TRUE if expression is valid, FALSE if expression leads to missing value

Examples

EX1

//Check if the labtalk expression is valid.
void Page_LT_evaluate_ex1()
{
        double vv;
        bool bRet;
        WorksheetPage wksPage("Book1");
        bRet = wksPage.LT_evaluate("page.active", &vv);
        if(bRet)
                out_str("The labtalk expression is valid");
        else
                out_str("The labtalk expression is not valid");
        
}

Remark

See Also

header to Include

origin.h

Reference