using variables with german "Umlaute" fails
Hi all...😎
If i using variables with string as value, then i get the error:
Code:
procedure SetReportVariables;
begin
FReport.Variables['NameUser'] := 'ä';//conUserName;
FReport.Variables['DateStart'] := DateFrom;
FReport.Variables['DateEnd'] := DateTo;
FReport.Variables['CheckHoliday'] := (HolidayType = htHoliday);
FReport.Variables['CheckOvertime'] := (HolidayType = htOvertime);
FReport.Variables['CheckHomeoffice'] := (HolidayType = htHomeoffice);
end;
Report:
With the workaround the all variables are shown...🙄
Workaround:
procedure SetReportVariables;
begin
Memo := TfrxMemoView(FReport.FindObject('Memo1')); // FReport.Variables['NameUser'] := conUserName; -> ungültiger Bezeichner
if Assigned(Memo) then
begin
Memo.Memo.Add(conUserName);
end;
FReport.Variables['DateStart'] := DateFrom;
FReport.Variables['DateEnd'] := DateTo;
FReport.Variables['CheckHoliday'] := (HolidayType = htHoliday);
FReport.Variables['CheckOvertime'] := (HolidayType = htOvertime);
FReport.Variables['CheckHomeoffice'] := (HolidayType = htHomeoffice);
end;
What´s wrong? It is a bug?
thanks...🙂
Comments
Version: 6.2.9
conUserName = 'Häntschel';
😏
How can i edit the post? 🙄
Solution:
QuotedStr()...🙄