Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread dbIsam 4.19 -> 4.24 : OnChange Field not compatible
Mon, May 21 2007 9:41 AMPermanent Link

"Enrico Ghezzi"
Hi,

I have upgraded from delphi 7 with dbisam 4.19 to Delphi 2007 with 4.24

I have this problem:

the event onchange of Tfield doesn't start if the value of TField is the
same of the previous.

this is not compatible with my application.


Now I have to understand:

who doesn't call the event?? CodeGear or ElevateSoft ?   Smile

can i change this option ?

Thanks


Mon, May 21 2007 11:51 AMPermanent Link

"Enrico Ghezzi"
i found it !

it is a CodeGear modify source


DELPHI 2007 SOURCE

procedure TCustomDBGrid.UpdateData;
var
 Field: TField;
begin
 Field := SelectedField;
 if Assigned(Field) and (Field.Text <> FEditText) then
   Field.Text := FEditText;
end;


DELPHI 7

procedure TCustomDBGrid.UpdateData;
var
 Field: TField;
begin
 Field := SelectedField;
 if Assigned(Field) then
   Field.Text := FEditText;
end;



this is the code :

MODIFY ->    and (Field.Text <> FEditText) then


i have a my personal TMYdbGrid source/ component.

how i can modify it to have a new UpdateData function ?



i have try, but don't work ^^"

c:\delphi2007\vcl\MyDBGrid.pas(129,18): Error error 2003: E2003 Undeclared
identifier: 'FEditText'







Tue, May 22 2007 4:46 AMPermanent Link

"Enrico Ghezzi"
Source :

DBGrids.pas

Image