Purpose Read all grid rows Solution Use the predefined VB function GuiXT
It copies the content of the grid cells into GuiXT variables, using a separate variable name for each cell. The variable name structure is like the one used for your own tables so that you can immediately display the content in a table, or address each cell content in your script. The columns to be read can be specified in guinet.GridControl.GridToTable, see the example below. An alternative way to read the grid content is GuiXT
which loads the whole grid content into a single GuiXT text variable, one line for each grid row. This is appropriate if you want to pass the grid content to other programs e.g. Excel or VB.NET functions. |
GuiXT
InputScript "load_operations.txt" GuiXT
GuiXT Script Editor Pro: Grid column names
|
Components |