Self/eo
Deutsch · English · Esperanto · Suomi
Self estas ŝlosilvorto kiun oni povas uzi en ekzemplo-metodoj por direkti al la objekto sur kiu la nuntempe plenumigita metodo estis envokita. Rezervita vorto self uzita por reprezenti ekzemplon de klaso en kiu ĝi aperas. Oni povas uzi na Self por atingi la membrojn de klaso kaj kiel referenco al la nuntempa ekzemplo.
procedure TForm1.FormCreate(Sender: TObject);
begin
// En tiu ĉi ekzemplo, Self estas la TForm1 klaso
Self.Caption := 'Test program';
Self.Visible := True;
end;From the Free Pascal wiki, page "Self/eo", as it stood on 2021-09-15 after a change by Deadmarshal, 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.
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
