(Gast)
n/a Beiträge
|
AW: Eigener Kalender bauen
3. Sep 2016, 16: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;
|
|
Zitat
|