Y
yangyuanjun
Unregistered / Unconfirmed
GUEST, unregistred user!
各位同行:
我有下述代码:
var
ii:integer;
begin
for ii:=1 to 20do
begin
'Query'+inttostr(ii)+'.open';
end;
end;
我想用上述代码实现此目的:
Query1.open;
Query2.open;
Query3.open;
...
Query20.open;
但编译时出现如下出错信息:
[Error] : Statement expected, but expression of type 'String' found
请问要如何解决?谢谢!
我有下述代码:
var
ii:integer;
begin
for ii:=1 to 20do
begin
'Query'+inttostr(ii)+'.open';
end;
end;
我想用上述代码实现此目的:
Query1.open;
Query2.open;
Query3.open;
...
Query20.open;
但编译时出现如下出错信息:
[Error] : Statement expected, but expression of type 'String' found
请问要如何解决?谢谢!