Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread creating tables progress
Wed, Oct 10 2007 9:27 AMPermanent Link

Andrej Bivic
I 've changed
ver2.12:  TableToUpdate.OnRestructureProgress := TableToUpdateRestructureProgress
to
ver4.25:  TableToUpdate.OnAlterProgress := TableToUpdateRestructureProgress;

I am recieving an error: "Incompatible typs: 'Word' and 'Integer' "

Please advise.
Wed, Oct 10 2007 10:22 AMPermanent Link

Eryk Bottomley
Andrej,

> ver2.12:  TableToUpdate.OnRestructureProgress := TableToUpdateRestructureProgress
> to
> ver4.25:  TableToUpdate.OnAlterProgress := TableToUpdateRestructureProgress;
>
> I am recieving an error: "Incompatible typs: 'Word' and 'Integer' "


I can't remember V2.x but the event handler signature for V4.x is:

procedure TMainForm.DBISAMTable1AlterProgress(Sender: TObject;
  PercentDone: Word);
begin

end;

....your TableToUpdateRestructureProgress procedure has to have a
matching parameter list. Apparently it is currently trying to pass a
variable of type Integer in a position where the signature requires a
variable of type Word. Change the definition of
TableToUpdateRestructureProgress accordingly.

Eryk
Image