I have some code the decrypts some text and then casts it to a decimal value. With windows 7 it works fine, but on another computer running windows 10 it throws an exception stating "83.96" cannot be cast to type decimal??
How is this even possible? Some google answers suggest is might be something to do with the cultureinfo.currentculture on this specific machine, but the answers are very vague.Code:dim deciphertext as string = "83.96" dim dec_value as decimal = CDec(deciphertext) 'Throws exception here
Any help on where to start repairing would be greatly appreciated.




Reply With Quote
