From: Andy C. <and...@bt...> - 2006-03-28 00:49:36
|
Hi Ariel, Rene will soon correct me if I'm wrong, but I would re-write the line as MyDB1.FormatQuery('INSERT INTO lista_oficinas VALUES(%d, %s, %s, %s)", [null, StringGrid1.Rows[fila].Strings[0], StringGrid1.Rows[fila].Strings[1], StringGrid1.Rows[fila].Strings[2]]); This is a little easier to maintain and read. With Query (versus Execute) you don't have to worry about closing handles either. Hopefully this will help you, if only a little ;-) Rgs, Andy |