Subject Re: [IBO] Automatic state change of query
Author Jason Wharton
When making changes in code ALWAYS write directly to the field value and
NEVER to the visual control. Controls are to do two things, receive user
interaction or reflect data.

Jason Wharton

----- Original Message -----
From: "Florian Hector" <FHector@...>
To: "IBObjects" <ibobjects@yahoogroups.com>
Sent: Tuesday, December 23, 2003 8:15 AM
Subject: [IBO] Automatic state change of query


> I have a TIB_Edit, who's DataSource' Autoedit is set to True. When I
manually change it's text by
> means of the keyboard, the dataset changes it's state to dssedit as
expected.
> However, when changing the text in code by assigning OpenDialog.FileName
to it, the state remains in
> dssBrowse although the OnChange Event of the Edit is fired.
> It's not a big deal since I now do the state change in code when the
OpenDialog is executed, but I
> was wondering if this is the expected behaviour.
>
> Florian