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

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.