Please enable JavaScript to view this site.

 

Navigation: Macros > Macro Language > Compiler Messages > Hints

Value assigned to variable is never used.

Scroll Prev Up Next More

This macro compiler hint occurs if you assign a value to a variable in a macro, but never use the resulting value of that variable it anywhere in the macro.

var
   nDate
begin
   nDate = FirstDateOfMonth(YearOf(n_TokenDate), 1// what's the point of this line ?
   bRESULT = IsWeekEnd(n_TokenDate)
end

In the above example, the value assigned to nDate is never used anywhere.

 


Topic 110101, last updated on 13-Apr-2020