Well, I was wondering how can you get a row's number through its text? I hate all of this ID crap. It isn't useful at all since you can all have ID's the same. This is for my Brick loading Search thing, here is my code:
//For some reason, FindTextindex always returns -1 so I cant use it here
%Query = $LoadbrickSBarEdit.getValue();
%List = LoadBricks_FileList;
for(%i=0;%i<%List.rowCount();%i++) //Loop through all the rows
{
%Row = %List.getRowText(%i);
if(%Row == %Query)
{
%FoundRow = %Query.getRowNum();
echo(%FoundRow);
%List.setSelectedRow(%FoundRow);
}
}
}
}
Why doesn't FindTextIndex work? Does it return the rows number, or the rows Id? I need to make it set the selected row of the control to the row that has that text...