I'm working with a table (BOM), which first column (Components List) has format "table" as well. I need to use the command "find" inside the BOM to look up the value "WE" for instance.
The code :
is unsuccessful since "WE" is the name of the sub-table, so it does not directly read it.
Thanks for helping.
Solved! Go to Solution.
In the upcoming version 13.1 this will work.
Until then you have to use a loop to search for the cell:
is do local subTableName := "test"; local searchRow := 1; local row := -1; for local i := 1 to TableFile.getColumnYDim(searchRow) loop if tablefile[searchRow,i].name = subTableName then row := i; exitloop; end; next; if row > 0 then print "Found sub table in line ", row; else print "Sub table not found!"; end end;