LTVarTempChange::LTVarTempChange

 

Description

Default constructor.

Syntax

LTVarTempChange( LPCSTR lpcszName, double dTempVal );
LTVarTempChange( LPCSTR lpcszName, LPCSTR lpcszVal );

Parameters

lpcszName
[input] Name of the LabTalk variable
dTempVal
[input] Temporary value of the LabTalk variable
lpcszName
[input] Name of the LabTalk variable
lpcszVal
[input] Temporary value of the LabTalk variable

Return

Examples

EX1

string strFile = "D:\\data.dat"; // some data file name
ASCIMP  ai;
if(0 == AscImpReadFileStruct(strFile, &ai) )
{
    // In this example we will disable the ASCII import progress
    // bar by setting the LabTalk System Variable @NPO to zero.
    LTVarTempChange progressBar("@NPO", 0); // 0 = disable progress bar

    // Get active worksheet from active work book.
    Worksheet wks = Project.ActiveLayer();

    if(0 == wks.ImportASCII(strFile, ai))
        out_str("Import data successful.");
}

Remark

See Also

LT_get_var LT_set_var

header to Include

origin.h