var
FSDateTimeS: TDateTime;
FSFingerIDS, FSOther1S, FSOther2S, FSOther3S, FSOther4S, FSStatusS, FSSourceS :string;
begin
ln:='[2011/09/05-05:49:21]1002/1/4/0/0';
FSDateTimeS:=EncodeDateTime(strtoint(copy(ln,2,4)),
strtoint(copy(ln,7,2)),
strtoint(copy(ln,10,2)),
strtoint(copy(ln,13,2)),
strtoint(copy(ln,16,2)),
strtoint(copy(ln,19,2)),
0);
FSFingerIDS := 'null';
FSOther1S := 'null';
FSOther2S := 'null';
FSOther3S := 'null';
FSOther4S := 'null';
FSStatusS := 'null';
FSSourceS := 'null';
sq.sql.text:='insert into fromFingerScanner(FSDateTime, FSFingerID, FSOther1, FSOther2,
FSOther3, FSOther4, FSStatus, FSSource)'
+ ' values('+FSDateTimeS+', '
+FSFingerIDS+', '
+FSOther1S+', '
+FSOther2S+', '
+FSOther3S+', '
+FSOther4S+', '
+FSStatusS+', '
+FSSourceS+')';
end;
Try this one do not change anything just make sure that sq.sql.text gets the correct string if it does and no error is raised then try to find out which peace of code creates the problem by comment/un-comment various parts of your routine and see what goes on.