You can use the Int32.Parse method, and you'll have to use the overload where you specify a NumberStyles enumeration of AllowHexSpecifier. You'll also have to strip off the "0x" part of your string using the string.Substring method before passing it to the Parse method.
Chip H.
____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first