Previous topic

auto_SetFileNameDialogInit

Next topic

auto_SetImportOptions

This Page

auto_SetFilterΒΆ

auto_SetFilter sets a filter to filter data records.

bool = auto_SetFilter(ssFilter)
bool = auto_SetFilter(ssFilter, ssNCName)

Return Value

bool

Parameters

ssFilter

ssFilter is a scalar string that specifies the record filter. The filter can consist of up to four AND (&&) or OR (||) connected comparions. Each consists of an in $ character enclosed channelname, followed by an operator followed by a value. See example. The following operators are available:

Operator Meaning
Channelname < Value True if Channelname is less than Value.
Channelname <= Value True if Channelname is less than or equal to Value.
Channelname == Value True if Channelname is equal to Value.
Channelname != Value True if Channelname is not equal to Value.
Channelname > Value True if Channelname is greater than Value.
Channelname >= Value True if Channelname is greater or equal to Value.
ssNCName

ssNCName is the complete name of an NC-Data file. This parameter is optional, if the auto_ImportData() has been called before auto_SetFilter.

Example

auto_ImportData(GetRootDirectory() + "samples/vollast.asc");
auto_SetFilter("$N$ > 1000 && $N$ < 5000 && $MEFF$ >= 100");

id-1372812