You are calling the variable for your texteditbox "texteditbox", which is allowed but not good programming practice. Here's how to use the value entered in the textedit box:
Names Default To Here( 1 );
tbox_value = "";
win = New Window( "Edit Box - Enter the Inspection Lot",
<<Modal,
<<Return Result,
Text Box( "HSS Test: Enter the Inspection Lot" ),
tbox = Text Edit Box( "Inspection Lot" ),
Text Box( "Pressing OK - display of HSS graphs will be done automatically." ),
hlistbox(
Button Box( "OK",
tbox_value = tbox << get text()),
Button Box( "Cancel" )
)
);
if (tbox_value != "",
sql = evalinsert(
"SELECT foo, bar
FROM utopia
WHERE User1 LIKE '%{^tbox_value^}%'");
show(sql);
Open Database("DBQ=X:...", sql, "HSS");
);
If I enter ABC the log shows this:
sql = "SELECT foo, bar
FROM utopia
WHERE User1 LIKE '%{ABC}%'";