Difference between revisions of "As/fi"
From Lazarus wiki
Jump to navigationJump to search (Created page with "{{as}} == As == Varattua sanaa <syntaxhighlight lang="pascal" enclose="none">as</syntaxhighlight> käytetään eksplisiittisessä tyyppimuunnoksessa (ca...") |
|||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
− | [[Reserved word/fi|Varattua sanaa]] <syntaxhighlight lang="pascal" | + | [[Reserved word/fi|Varattua sanaa]] <syntaxhighlight lang="pascal" inline>as</syntaxhighlight> käytetään eksplisiittisessä tyyppimuunnoksessa (cast) (käytä yhtä muuttujatyyppiä kuin jos se olisi toinen tyyppi) |
− | <syntaxhighlight> | + | <syntaxhighlight lang=pascal> |
procedure TmainForm.selectionGridDrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState); | procedure TmainForm.selectionGridDrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState); | ||
begin | begin |
Latest revision as of 17:20, 6 August 2022
│
Deutsch (de) │
English (en) │
español (es) │
suomi (fi) │
français (fr) │
As
Varattua sanaa as
käytetään eksplisiittisessä tyyppimuunnoksessa (cast) (käytä yhtä muuttujatyyppiä kuin jos se olisi toinen tyyppi)
procedure TmainForm.selectionGridDrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
(Sender As TDBGrid).DefaultDrawColumnCell(Rect,DataCol,Column,State);
end;
tässä TObject-tyypin Sender-muuttuja tyyppimuunnetaan TDBGrid-tyypiksi. As on Object Pascal:n ja Delphin-laajennus.