I am getting this error

Hi,

since “num” is of type Int32, you need to convert it to String.
2 most commonly used are below

num.ToString
CStr(num)

Regards.