find

Search inside datawindow

Define the search string in DataWindow format

Return the row

If nothing found, the system return -1

If search string is wrong, it  cancel script with error message

 

dw_1.find(s searchText, n StartRow, n EndRow);

Start- and Endrow are optional.

 

Example:

let row=dw_1.find("ItemCode=\"RM01\" ");

 

Or working with Variable

let a="RM01";
let row=dw_1.find("ItemCode= '"+a+"' ");

 

more see datawindow expression

 

Events

Follow events called (x=1-7)

dw_x_rowfocuschanged()