LoggerGetAutoSave


Function

Get the status of autosave after or during data collection.

Format

Ret = LoggerGetAutoSave ( AppId , ExcelEnable , AutoSaveType , FolderPath )

Parameters

AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ] 

Specify Application ID retrieved by LoggerOpenApplication.

ExcelEnable [ VB.NET: UShort ] [ C++: unsigned short * ] [ C#: out ushort ]

Specify the address for storing whether Excel forwarding is enabled or disabled.

AutoSaveType [ VB.NET: UShort ] [ C++: unsigned short * ] [ C#: out ushort ]

Specify the address where the autosave status is stored.

FolderPath  [ VB.NET: StringBuilder ] [ C++ : char * ] [ C#: out string]

Specify the address that contains the folder in which to save the target data.

Return Value

Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ]

Definition

Return code

[Dec]

Description

LOGGER_ERR_SUCCESS

0

Normal completed

LOGGER_ERR_INVALID_ID

10010

Invalid AppId was specified.

The others (See also: Error Code List)

Initial Value

Nothing in particular.

Remarks

Get the setting status of automatic save after or during data collection.

Example

Get the autosave status.

VB.NET

Dim Ret As Integer
Dim ExcelEnable As UShort

Dim AutosaveType As UShort
Dim FolderPath As New StringBuilder("", 256)

Ret = LoggerGetAutoSave(AppId, ExcelEnable, AutosaveType, FolderPath)

 

C++

long Ret;
unsigned short ExcelEnable;

unsigned short AutosaveType;

char FolderPath[255];

Ret = LoggerGetAutoSave(AppId, &ExcelEnable, &AutosaveType, &FolderPath[0]);

 

C#

int Ret;
ushort ExcelEnable;

ushort AutosaveType;

string FolderPath;

Ret = logger.GetAutoSave(AppId, out ExcelEnable, out AutosaveType, out FolderPath);

 

See Also

LoggerSetAutoSave