Variable is not initialized

Navigation:  Messages > Macro Compiler Messages > Warnings >

Variable is not initialized

Previous pageReturn to chapter overviewNext page

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 wether 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 updated on 17-Mar-2002.
Topic URL: http://www.qppstudio.net/webhelp/index.html?variableisnotinitialized.htm