I found a BUG in the TCustomTableControl class of the Unit WEBLib.Grids that is in the folder tmssoftware\registered\TMS WEB Core RSXE12\Core Source
The integer type variable has not been declared and an error occurs at the beginning of the For loop.
In the print I declared the var i and it worked.