Difference between revisions of "As"
From Free Pascal wiki
Jump to navigationJump to searchm |
(Have been deleted explicit category for prevent copying it to new translations. This category already included in "Template:as" for all languages.) |
||
Line 15: | Line 15: | ||
As is an Object Pascal and a Borland Delphi extension. | As is an Object Pascal and a Borland Delphi extension. | ||
− | |||
− | |||
− |
Revision as of 21:09, 8 January 2018
│
Deutsch (de) │
English (en) │
español (es) │
suomi (fi) │
français (fr) │
As
The keyword as is used to cast (use one variable type as if it were another type)
procedure TmainForm.selectionGridDrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
(Sender As TDBGrid).DefaultDrawColumnCell(Rect,DataCol,Column,State);
end;
here the Sender variable of type TObject is being cast as type TDBGrid
As is an Object Pascal and a Borland Delphi extension.