I have what should be a simple problem, but I don't know the right way to phrase it.
I have a few variables;
A1 = "44";
A2 = "47";
A3 = "50";
//numbers are in string format intentionally
And a data table, dt, where these variables are included among many others in one column, column "LOT". If I create a for loop, to find these variables in the table, and mark the rows when they are found, I am not able to find them..
For( i = 1, i <= 3, i++,
foundlot = "A" || Char( i );
Show( foundlot );
dt << Select Where( :LOT = foundlot ) << Colors = (5);
);
I realize the problem is that foundlot is a string "A1", "A2", "A3", ... and does not substitute the value of A1, A2 and A3 to allow a comparison of the value of A1 to the column value in the table.
What would I need to do to have it substitute the value, rather than compare the column value to the string "A1" which always is not a match?
Thank you for your help!