When I use setprefix function in the while select loop with the continue statement, than the behaviour is unexpected. It seems that the continue statement doesn't reset prefix level. See example below. Is it a bug?
static void TestPrefixWithContinue(Args _args) { int i; TaxTable taxTable; setPrefix("setPrefix with continue"); while select taxTable { setPrefix(strFmt("Tax code %1", taxTable.TaxCode)); if (i < 3) { info("Something wrong"); i++; continue; } // Some useful code here i++; } }
*This post is locked for comments