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.





 if nTemp == 2 // nTemp was never assigned a value !

         nTemp = nTemp + 1        




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: