function GetLLB(nValue : integer) : string;
const LLBS : array[1..3] of string = ('【拉力棒J】', '【CE Marking】', '【撞击TP】');
var
n : integer;
begin
result := '';
while nValue > 0 do
begin
n := nValue mod 10;
nValue := nValue div 10;
result := LLBS[n] + result;
end;
end;
procedure TGuanZhiDan.adqGuanZhiDanMXpfChange(Sender: TField);
begin
sql := 'select llb_ce_tp from tpJiChuZiLiao where pf =''' + Sender.AsString + '''';
OpenADOQuery(DM.QryTmp, sql);
adqGuanZhiDanMX.FieldValues['llb_ce_tp'] := GetLLB(DM.QryTmp.FieldByName('llb_ce_tp').AsInteger);
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货