Dbstate - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

Database Commands

6-17-11 DBState

Argument
Type
command
text
parameters
Typical Examples
NumberOfRecords
"RecordCount")
Read the Number of records in the Schema.
DBSchema("Invoice.Data types", "Read", 2)
Read Schema page 2 results into the associated point.
DBSchema("Invoice.Data
"COLUMN_NAME", "")
Set a new Schema to return column names.
Description
Reports if the specified level is in the requested state.
Syntax
return = DBState(level, state)
Remarks
Argument
Type
return
bool
SECTION 6 Functions and Methods
Description
The command must be one of the following:
"Read" - Transfers a schema page into the
associated point
"Set" - Enables schema details to be
modified
"Type" - Returns the current Schema Type
"Criteria"- Returns the current Schema
Criteria
"Filter" - Returns the current Schema Filter
"RecordCount" - Returns the number of
records in the current Schema
"PageCount" - Returns the number of
pages in the current Schema
"CurrentPage" - Returns the current
Schema page
Some commands require 1 or more extra
parameters. "Read" takes an optional
parameter 'Page Number' of type integer. If no
'Page Number' is supplied, this function will
return page 1 when first called and
automatically return the next page of schemas
for each subsequent call, cycling back to the
beginning when all pages have been returned.
"Set" takes three text parameters for Schema
'Name', 'Criteria' and 'Filter'.
=
DBSchema("Invoice.Data
Types",
Description
1 if the specified level is in the requested state,
otherwise 0
Types",
"Set",
"Columns",
111

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents