As/fi: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: As/fi
| Old | New | Line | |
|---|---|---|---|
| 1 | + | ## As | |
| 2 | + | ||
| 3 | + | [[Reserved word/fi|Varattua sanaa]] `as` käytetään eksplisiittisessä tyyppimuunnoksessa (cast) (käytä yhtä muuttujatyyppiä kuin jos se olisi toinen tyyppi) | |
| 4 | + | ||
| 5 | + | ``` pascal | |
| 6 | + | procedure TmainForm.selectionGridDrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState); | |
| 7 | + | begin | |
| 8 | + | (Sender As TDBGrid).DefaultDrawColumnCell(Rect,DataCol,Column,State); | |
| 9 | + | end; | |
| 10 | + | ``` | |
| 11 | + | ||
| 12 | + | tässä [[TObject]]-[[Type/fi|tyypin]] Sender-[[Variable/fi|muuttuja]] tyyppimuunnetaan [[TDBGrid]]-tyypiksi. As on [[Object Pascal]]:n ja [[Delphi/fi|Delphin]]-laajennus. | |
| 13 | + | ||
| 14 | + | --- | |
| 15 | + | *From the Free Pascal wiki, page "As/fi", as it stood on 2022-08-06 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
