
Warum, bzw, wie kann ich das korrigieren?
Danke schon mal. . .
Jürgen
procedure TForm1.Kalender;
F: TCalLiteForm;
d: TDate;
begin
F := TCalLiteForm.Create(nil);
try
if TryStrToDate(Label2.Caption, d) then
F.Date := d
else
F.Date := Date();
F.Date := EncodeDate(2023,StrToInt(Monat), 1);
F.Language := lgGerman;
F.Colors.ArrowColor := clBlue;
F.Colors.ArrowBorderColor := clNavy;
F.StartingDayOfWeek := dowMonday;
F.Options := F.Options + [coNoMonthChange] + [coNoOtherMonthDays];
if F.Execute then
Label2.Caption := DateTostr(F.Date);
Edit2.Text:= DateTostr(F.Date);
finally
F.Free;
end;
end;