I’m not sure why I’m getting this error message. They all appear to be Integers. I don’t know why it’s saying there is a double. Here is the full error message.
Error compiling code - error BC30512: Option Strict On disallows implicit conversions from 'Double to ‘Integer’ at line 3
-
StatusMessage = MessageArray(0)
-
Dim two As Integer = 2
-
Dim len As Integer = StatusMessage.Length / two
-
StatusMessage = StatusMessage.Substring(0, len)
I’m using invoke code method. I have imported into the invoke code method, an array of string, and All I’m trying to do is cut the string in half. The string I’m trying to cut in half is located in the zero index of the array. StatusMessage.Length should return an Integer. I’ve declared two as an Integer, and also len. Where or what’s up with the double… I’m not seeing any doubles.