[fpc-devel] C style operator doesn't work with properties in 2.3.1
    Jonas Maebe 
    jonas.maebe at elis.ugent.be
       
    Thu Jul 17 09:09:55 CEST 2008
    
    
  
On 17 Jul 2008, at 08:41, Graeme Geldenhuys wrote:
> Simple one liners like the following:
>
>   inc(FDayList[itm.WeekDayNum].Rows[itm.Timeslot].AvailableSlots,
> itm.CountSlots);
> or
>   FDayList[itm.WeekDayNum].Rows[itm.Timeslot].AvailableSlots +=  
> itm.CountSlots;
>
> now has to change to this ugly line...
>
>   FDayList[itm.WeekDayNum].Rows[itm.Timeslot].AvailableSlots :=
>      FDayList[itm.WeekDayNum].Rows[itm.Timeslot].AvailableSlots +
> itm.CountSlots;
Or
with FDayList[itm.WeekDayNum].Rows[itm.Timeslot] do
   AvailableSlots:= AvailableSlots+itm.CountSlots;
Jonas
    
    
More information about the fpc-devel
mailing list