Subject | Re: [IBO] TIB_Query->Insert throws on non-NULL fields - FIXED |
---|---|
Author | Lester Caine |
Post date | 2003-01-30T17:35:31Z |
> qry->FieldByName("Notes")->AsString = "Uh-oh";Yes that will switch to edit mode, and change the current
record.
> qry->Insert(); // Pow!So that is trying to add another line.
> Does the first line auto insert a row? Or should it throw anEditing an existing record is automatic.
> exception?
> Anyhow, the correct sequence below works.Add the notes to a new line <g>
>
> qry->Insert();
> qry->FieldByName("Notes")->AsString = "Uh-oh";
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services