Einzelnen Beitrag anzeigen

nahpets
(Gast)

n/a Beiträge
 
#13

AW: Eigener Kalender bauen

  Alt 3. Sep 2016, 15:02
Delphi-Quellcode:
function StrToLabel(sName : String) : TLabel;
var
        myCompo : TComponent;
begin
  Result := Nil;
  myCompo := FindComponent(Format('lb%s',[sName])); // oder welche Namenskonvention auch immer.
  if Assigned(myCompo) then begin
    if myCompo is tLabel then Result := myCompo;
  end;
end;
  Mit Zitat antworten Zitat