Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread String index change under 1.03b1
Sun, Jan 19 2014 12:46 PMPermanent Link

Malcolm Taylor

I recompiled a small app and found the compiler balked on a line that
used to compile:

{code}
 // set grid column caption to first letter of day name
 for i := 1 to 7 do
 begin
   grdCal.Columns[i mod 7].Caption :=
FormatSettings.ShortDayNames[i][1]; << Stops here
 end;
{code}

The following expansion compiles fine under 1.03

{code}
....
   d := FormatSettings.ShortDayNames[i];
   grdCal.Columns[i mod 7].Caption := d[1];
....
{code}

No big deal.  I guess it ran out of post-it notes before it got to the
end.  <bg>
Or did I miss something......

Malcolm
Sun, Jan 19 2014 1:25 PMPermanent Link

Ronald

Hi,

I had the same, just remove then "[1]".
Maybe due to the conversion to 1.03

Greetings,
Ronald

"Malcolm"  schreef in bericht
news:9E4E342B-40C9-409E-8AFB-40F47A720026@news.elevatesoft.com...

I recompiled a small app and found the compiler balked on a line that
used to compile:

{code}
 // set grid column caption to first letter of day name
 for i := 1 to 7 do
 begin
   grdCal.Columns[i mod 7].Caption :=
FormatSettings.ShortDayNames[i][1]; << Stops here
 end;
{code}

The following expansion compiles fine under 1.03

{code}
....
   d := FormatSettings.ShortDayNames[i];
   grdCal.Columns[i mod 7].Caption := d[1];
....
{code}

No big deal.  I guess it ran out of post-it notes before it got to the
end.  <bg>
Or did I miss something......

Malcolm
Image