ResultGrid
Top  Previous  Next


Fills a ResultGrid with data from the NTinfo main or filter window

Number of columns in the grid is equal to number of tab characters in the output parameter. Number of rows in the grid is equal to number of rows in the source window.

ResultGrid Window ; Output [; [-]SortBy] [;WrapCol]

Window
Options: Main | Filter  
·Main - exports main window to grid  
·Filter - exports filter window to grid  

Output
What to write to the grid - text combined with variables  
Insert the string "%tab%" between two column variables to create a new column, example: %col2%%tab%%col5%.  
Specify a range of columns by inserting a minus character and a second value in the column variable, example: %col1-5%.  
When exporting a range, each column in the range is delimited by the character specified in the "NTreport.Delimiter" setting in the [Settings] section. Therefore, set "NTreport.Delimiter=%tab%" to put range data in different grid columns and set "NTreport.Delimiter=%spc%" to put range data in same grid column.  

SortBy [Optional parameter]
Column to sort grid by  
A minus sign in front of the column number changes sort order.  

WrapCol [Optional parameter]
Column to wrap text in  

Examples
1) Create a new ResultGrid, copy columns 1, 2, and 4 from the main window to separate grid columns

ResultGrid Main; %col1%%tab%%col2%%tab%%col4%

2) Create a new ResultGrid, copy columns 1 to end from the main window to separate grid columns, sort by column 3

NTreport.Delimiter=%tab%

ResultGrid Main; %col1-%; 3

3) Create a new ResultGrid, copy column 1, 2 and 3 to separate grid columns, copy columns 10 to end to the same grid column

NTreport.Delimiter=%spc%

ResultGrid Main ; %col1%%tab%%col2%%tab%%col3%%tab%%col10-%