Input/Output Table Control Expression

Check the “Page Name” and “Object Name”

image-20241018-015035.png

 

 

wcGridInsertData()

wcGridInsertData

Adds a new row to the I/O table.

Function

Command

wcGridInsertData(“PageName.ObjectName”, “Data”)

Script

wcGridInsertData(“PageName.ObjectName”, “Data”)

Description

Adds a row with the value “Data” to the I/O table of “PageName.ObjectName”.

Example Data: 'value1', 'value2', 'value3'

Example

wcGridInsertData(“TESTPAGE.mytable”, “‘Cimon’, ‘Jason’”)

 

 

wcGridGetData()

wcGridGetData

Reads cell data from an I/O table (outputs as a STRING)

Function

Command

n=wcGridGetData(“PageName.ObjectName”,row number,column number)

Script

n=wcGridGetData(“PageName.ObjectName”,row number,column number)

Description

Reads the data located at the row number and column number of the I/O table specified by “PageName.ObjectName”, where the row number and column number start at 1.

Example

n = wcGridGetData(“TESTPAGE.mytable”,2,4)

 

 

wcGridSetData()

wcGridSetData

Change the data of a specific cell in an I/O table.

Function

Command

wcGridSetData(“PageName.ObjectName”,row number,column number,Data)

Script

wcGridSetData “PageName.ObjectName”,row number,column number,Data

Description

Changes the contents of the cell located at the row number and column number of the input/output table specified as “PageName.ObjectName” to Data. If the data you want to change is a STRING, enter the value in the form “Data”.

Changes made using this subroutine are not saved in the project.

Example

wcGridSetData(“TESTPAGE.mytable”,2,5,“CIMON”)

wcGridSetData(“TESTPAGE.mytable”,3,4,77)

 

 

wcGridGetRowCount()

wcGridGetRowCount

Gives the number of rows in the I/O table (outputs as a STRING)

Function

Command

n=wcGridGetRowCount(“PageName.ObjectName”)

Script

n=wcGridGetRowCount(“PageName.ObjectName”)

Description

Tells the number of rows in the I/O table specified by “PageName.ObjectName”.

Example

n = wcGridGetRowCount(“TESTPAGE.mytable”)

 

 

wcGridClearData()

wcGridClearData

Clears all data shown in the I/O table.

Function

Command

n=wcGridClearData(“PageName.ObjectName”)

Script

n=wcGridClearData(“PageName.ObjectName”)

Description

Clears all data in the I/O table specified by “PageName.ObjectName”.

Example

n = wcGridClearData(“TESTPAGE.mytable”)