|
-
May 4th, 2010, 04:00 PM
#1
Thread Starter
Fanatic Member
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
-
May 4th, 2010, 04:17 PM
#2
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
-
May 4th, 2010, 04:45 PM
#3
Re: errors,errors,errors
You need to show us a bit more code...
VB.NET MVP 2008 - Present
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|