Thanks for the reply Margret
The variable NumOfBlows is not an array it's an integer, and that's the one throwing the compilation error.
The line throwing the problem is line 649:
Table1.AddRow(NOB,TBTP,PNTP)
The conversion to string has worked but I don't understand the String.Rank=0 and String.Rank =1. The compiler seems to dislike the way I've forced it to a string.
Compiling code. Error
Error compiling program.
Error description: Cannot cast type: {Type=String,Rank=0} to: {Type=String,Rank=1}
Occurred on line: 649
Table1.AddRow(NOB,TBTP,PNTP)
Word:nob
Can I Log it if it's a compilation error and not runtime exception?