I have the following code, comments in detail about what should happen:
averageNum = myArray2(0) 'assign variable response.write(TypeName(averageNum)&"<br>") 'check var type: string as expected averageNum = CInt(averageNum) 'convert to integer
When I run this, I get
Type mismatch: 'CInt'
I need to turn the variable into an integer, since I need to perform calculations with it
source share