PDA

View Full Version : Undefined runtime variable in INI update



Tom H.
02-28-2012, 12:13 PM
I don't know if this is by design, but I accidentally had an undefined variable in the 'Contents:' text of an 'Edit INI File' function and the compiler didn't flag it.

Example:
[My_Section]
BadVar=%NOT_DECLARED%
GoodVar=%WAS_DECLARED%

The script compiled and ran fine, except in the target machine I would end up with a value of "%NOT_DECLARED%" for the 'BadVar' entry.

Using latest SB 7.6.

Tom

linder
02-29-2012, 01:01 AM
Hi Tom,

No, this is definitely a bug. The compiler should flag it. Item in review.

Thank you for bringing this to my attention!

Friedrich

linder
03-03-2012, 08:24 AM
Fixed. This fix will be available in the next maintenance build. Thanks again for the report.

FIX : (sync from SB8) [SB#202281] IDE: The compiler did not detect unreferenced variables in the "Edit INI..." script function.

Friedrich