我在数据库已经取值成功,在报表已经查看且正确,我想把这个值赋给变量,但总是不正确。 & K" O8 Z' Z' u" p; i( H6 C% F int a; + N0 L. U; T( I# M+ Z1 e3 i7 rif (Query1->Active==true) 2 Z$ f1 x- f' |+ t2 t Query1->Active=false;5 M! {% P+ t [0 Y
Query1-> SQL-> Clear();7 ^ {) L4 f" o' k( B5 o
0 X3 W2 i- ^* D: _ g
Query1->SQL->Add("Select Chinese from cj.db where Name=1");) i/ b8 M* [9 e6 s7 k
6 ?1 k P( N/ |. t' e Query1->Active=true;8 V) N* Z' R- J V* } R! l
//AnsiString stemp=Query1-> FieldByName( "Name=1")->AsString; 0 Z, g) {! @9 t0 B, y5 f* ~# a& B a=Query1-> FieldByName( "Name=1")->AsInteger; # }1 e0 b: f' _6 N Edit1->Text=a; % f1 k y3 D( W, J9 i, |8 r. T 2 }$ \% R; r n+ l" q6 I; Z6 x* J : v V; R2 l" i0 }' s& Y* Q9 j: ?/ K5 E: X
6 q) g9 A% s0 k4 L9 |/ I" _
请高手指导