Duplicate variable

Navigation:  Messages > Macro Compiler Messages > Errors >

Duplicate variable

Previous pageReturn to chapter overviewNext page

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 nWeekday bIsWednesday

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 nWeekday {<-!!} bIsWednesday

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 updated on 11-Apr-2002.
Topic URL: http://www.qppstudio.net/webhelp/index.html?duplicatevariable.htm