PaidtheUmpire
Programmer
Can any body see the problem with this code... seriously i've been looking at it for an hour and still can't find it.
The TheLineData string is like so... (in one line)
Delphi, Delphi, Delphi. Oi! Oi! Oi!
Code:
procedure TFrmTap2Control.FinishInsertion;
var TheLineData : string;
var CallNo, r : integer;
begin
CallNo := CallMemo.Lines.Count - 2;
For r := 0 to CallNo do
begin
TheLineData := CallMemo.Lines[r];
// If TheLineData <> '' then
CallInsert.SQL.Clear;
CallInsert.SQL.Add('INSERT INTO Call_Records (Client_Reference_Number, IMSI_Number,' + ' IMEI_Number, Phone_Number_Called, Start_Date_And_Time, Call_Length, Cost_To_Fastwave, Cost_To_Client, Location_Code, VoiceDataSMS, CTC_Currency, IncludedCall, Type, Charged_Length, FileName, LineNo, InvoiceType) VALUES (' + TheLineData + ');');
CallInsert.ExecSQL;
end;
end;
The TheLineData string is like so... (in one line)
Code:
1000103,901032140015983,300001001953390,0061732299576 ,09/04/05 08:55:54,000030,000000.308,2.2,00505,Data,AUD,Yes,IrdAusD,40,cdusa77FASTW03370.dat,4,Standard Data Calls
Delphi, Delphi, Delphi. Oi! Oi! Oi!