F
fxjpost
Unregistered / Unconfirmed
GUEST, unregistred user!
dm.Command.CommandText := " begin tran "
+ " delete from data "
+ " delete from temp_data "
+ " commit tran ";
dm.Command.Execute;
OpenDial := TopenDialog.Create(self);
while bStop < >1 do
begin
OpenDial.Filter := "Text files (*.txt) &brvbar;*.TXT ";
if OpenDial.Execute then
fileName := OpenDial.FileName
else
break;
if fileName < > " " then
InsertData(fileName, "1 "
if MessageDlg( "還有掃描檔嗎? ",mtConfirmation, [mbYes, mbNo], 0) = mrYes then//這個地方執行後,直接跳出while語句,為什麼?
begin
bStop := 0;
continue;
end else
begin
bStop := 1;
+ " delete from data "
+ " delete from temp_data "
+ " commit tran ";
dm.Command.Execute;
OpenDial := TopenDialog.Create(self);
while bStop < >1 do
begin
OpenDial.Filter := "Text files (*.txt) &brvbar;*.TXT ";
if OpenDial.Execute then
fileName := OpenDial.FileName
else
break;
if fileName < > " " then
InsertData(fileName, "1 "
if MessageDlg( "還有掃描檔嗎? ",mtConfirmation, [mbYes, mbNo], 0) = mrYes then//這個地方執行後,直接跳出while語句,為什麼?
begin
bStop := 0;
continue;
end else
begin
bStop := 1;