R
Robert Scheer
Hi.
I am trying to add a value to a byte property as below:
Utilization.Limit +=1
This gives me a message saying that Option Strict On disallows
implicit conversions from 'Integer' to 'Byte'.
I changed my code to:
Utilization.Limit += Convert.ToByte(1)
And now it is working. But is this correct? Or is there a better way
to increment my Byte property?
Regards,
Robert Scheer
I am trying to add a value to a byte property as below:
Utilization.Limit +=1
This gives me a message saying that Option Strict On disallows
implicit conversions from 'Integer' to 'Byte'.
I changed my code to:
Utilization.Limit += Convert.ToByte(1)
And now it is working. But is this correct? Or is there a better way
to increment my Byte property?
Regards,
Robert Scheer