T
terry_zhou82
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.RunExe;var l:string;begin ......... if not abstable1.Eof then begin l:=table1.FieldByName('XX').AsString; if l= 'YY' then begin ShellExecute(Handle,'open',PChar(Table1.FieldByName('ZZ').AsString),nil,nil,sw_shownormal); end; if Table1.FieldByName('*').AsString <> ' ' then Table1.Delete ; end; table1.refresh; end;问题来了。每次运行到这里。shellexecute还没有执行,就DELETE了。如果把最后三条语句注销。则可以正常运行shellexecute,请问各位高手,是是么原因呢?谢谢了