胡
胡鸣
Unregistered / Unconfirmed
GUEST, unregistred user!
with Query do begin close; sql.Clear; sql.Text :='select * from table where field='''+a+''''; Open;我想换成如下,但出错,请哪位指出错在哪啊var sql:string;sql:='select * from table where field='''+a+''''; with Query do begin close; sql.Clear; sql.Text :=pwidechar(sql);//此处如果直接用sql.text=sql编译就通不过,改为pwidechar(sql)后编译可以通过,但执行查询时出错。 Open;