I am getting this error

studio
variable

#1


#2

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.