Subject | Re: [IBO] TIB_GridInplaceEdit |
---|---|
Author | Geoff Worboys |
Post date | 2001-03-03T02:26:47Z |
> Interesting, I thought (Object as class) and class(object) areFrom the Delphi online help: "The as operator performs checked
> the same. By the way, the code I posted, was the original code
> from Jason.
typecasts". So it a typesafe way of performing operations.
AFAIK class(object) are not checked, but forced to the particular type
at compile time. As such this is much more efficient where the type
is known (since no runtime checking is required). It is also
convenient for hacks, as you are discovering. (someone please correct
me if I am wrong here, since I cannot find explicit confirmation in
the online doco)
The code works for Jason because TIB_Grid actually creates inplace
edit of the type requested and so the runtime type check succeeds.
Geoff Worboys
Telesis Computing