hi guys,
I am trying to read and write values in registry. I get return something like "system.object"{string} from reading function. I need to assign the value to a integer variable.
How can i do it?
hi guys,
I am trying to read and write values in registry. I get return something like "system.object"{string} from reading function. I need to assign the value to a integer variable.
How can i do it?
Dim return As Boolean
Dim result as Int
return = Int32.TryParse("yorstring", result)
where return indicates if function can convert string or not
yes you need to parse it using Int32.TryParse("your string", out result) the function will tell you where you can convert the string to int or not.