Please enable JavaScript to view this site.

 

This compiler error will occur if you have declared the same variable name twice.

var
   nDate sName bIsWednesday nDate {<- !!}
begin

Apart from the above example, this can happen if you had a macro which used a fixed value for one of its variables ...

var
   nDate sName bIsWednesday nWeekday
begin
   nWeekday = WeekdayOf(n_TokenDate)
   // some code ...
end

... and if you then decide to modify the macro so that each DiaryGridLine can set the input value of this variable through its macros scriptline property ...

input
   nWeekday
var
   nDate sName bIsWednesday nWeekday // oops !!!
begin
   nWeekday = WeekdayOf(n_TokenDate)
   // some code ...
end

... but in doing so you forget to remove nWeekday from the var block as you add it to the input block.

 


Topic 108163, last updated on 01-Aug-2020