btw, that's why i turned off these "Option"'s , http://prntscr.com/s1rxs
Maybe some will give error when i get there... or run it, but right know it only has one...
Well, the thing is, those oprions will help you immensely in your coding. Many beginners don't turn them on because they end up with errors. They still have the errors, and some of them couuld be VERY dificult to find at run time.
If you take a look at the underlines, and drive your mouse pointer over them, they will tell you what the errors are, and if you drive the pointer over the little red thing at the end of the underline, and click on the little exclamation mark, it will often sugges a fix.
Being a naturally lazy programmer, I will often just type something like intValue = TextBox.Text *5, and then just use the editor to put in the Cint() for me. So as you can see, it can actually save time and keystrokes once you get on to it.
"Operator 'Xor' is not defined for types 'Object' and 'System.Array'."
OK.. leave the Options on, and make some corrections. All those variables that start with str should be declared as strings. For example, instead of:
strKeyPath = "blah blah..."
it should be :
Dim strKeyPath As String = "blah blah..."
iValues sgould be an integer type, so:
Dim iValues() as Integer
I'm not sure what oReg should be, because I can't tell from this snippet.
The Xor thing.. yup, not an operator for Object or array. It might be for an element in an array, or for a property of an object. Basically, Xor will work on a boolean or on an integer.
Hang in there and apply some thought to it. Good Luck!