Please enable JavaScript to view this site.

 

Navigation: Macros > Macro Language > Compiler Messages > Warnings

Variable is not initialized

Scroll Prev Up Next More

This compiler warning is generated if you try to use the value of a variable for which no value has previously been set.

var
   nTemp
begin
   if nTemp == 2 // nTemp was never assigned a value !
      nTemp = nTemp + 1   
   endif
end

In the above example, we are testing whether the value of nTemp is 2, but we never set or calculated the value of nTemp.

 

See also: variable may not have been initialized.

 


Topic 110099, last updated on 13-Apr-2020