How can I turn a selection from a radio box into text? Trying below with no luck. Or is there some other simpler solution?
win = New Window( "Radio Box",
<<Modal,
<<ReturnResult,
Panel Box( "Select",
rbox = Radio Box( {"A-CMP-1", "A-CMP-2"} ),
toolcode = rbox<<get text;
),
);
DSNString= "Driver={SQL Server}; SERVER=rb; DATABASE=FAB; UID=fab; ";
sqlStr=
"
select vcLotCode, vcToolCode
from EDB.dbo.tFABDATA
where vcLotCode like 'Lot.1234'
and vcToolCode like '"|toolcode|"'
";
dt = Eval(Substitute(Expr(dt=Open Database(DataSource,sqlcode,"Lots");),Expr(sqlcode),sqlstr,Expr(DataSource),DSNString));