千
千中元
Unregistered / Unconfirmed
GUEST, unregistred user!
var playrecord1:TADOQuery;
begin
try
playrecord1:=TADOQuery.Create(self);
playrecord1.Connection:=DataModule3.ADOConnection1;
Playrecord1.CacheSize:=100;
playrecord1.Close;
playrecord1.SQL.Clear;
playrecord1.SQL.Add('select user_id from vod_playrecord where user_id=:user_id');
playrecord1.Parameters.ParamByName('user_id').value:=DataModule3.adsUser.fieldbyname('user_id').value;
playrecord1.open;
finally
playrecord1.free;------运行到这里出问题了:
[Warning] famUser.pas(245): Variable 'playrecord1'
might not have been initialized
end;
虽然程序运行暂时没问题,但是心里总是发毛啊。。。
begin
try
playrecord1:=TADOQuery.Create(self);
playrecord1.Connection:=DataModule3.ADOConnection1;
Playrecord1.CacheSize:=100;
playrecord1.Close;
playrecord1.SQL.Clear;
playrecord1.SQL.Add('select user_id from vod_playrecord where user_id=:user_id');
playrecord1.Parameters.ParamByName('user_id').value:=DataModule3.adsUser.fieldbyname('user_id').value;
playrecord1.open;
finally
playrecord1.free;------运行到这里出问题了:
[Warning] famUser.pas(245): Variable 'playrecord1'
might not have been initialized
end;
虽然程序运行暂时没问题,但是心里总是发毛啊。。。