Failed compile the frm/frmEditGrid.cpp, because scope of a variable declared in
for loop is limited to that loop