-
errors,errors,errors
i have a code that when i put the strict on give me theses errors how can i solve them
thank you
Error 1 Option Strict On prohibits operands of type Object for operator '&'.
For Each obj As Object In al
Number_Array(index).num(counter) = CInt(al(counter))
number_str += "-" & al(counter)
counter += 1
Next
Number_Array(index).num_str = number_str.Substring(1)
Warning 2 variable 'activated' conflicts with event 'activated' in the base class 'Form' and should be declared 'Shadows'.
Error 3 Option Strict On disallows implicit conversions from 'String' to 'Double'.
str = ((((x & "") + y & "") + z & "") + w & "") + v
-
Re: errors,errors,errors
number_str += "-" & al(counter)
"-" is a string .... & is used to concatenate strings...
what's the data type of the items in the al array? .... also ... why are you doing a For Each, then not using the object you're creating? Where is counter defined? .... your code doesn't make a whole lot of sense... what are you trying to do?
-tg
-
Re: errors,errors,errors
You need to show us a bit more code...