i'm using globalization.numberformatinfo in vb code , trying assign value currencydecimaldigits member of class:
dim globalization.numberformatinfo = new globalization.numberformatinfo() dim b integer = 4 a.currencydecimaldigits = b
in msdn it's written read member, though shown code assigning it: http://msdn.microsoft.com/en-us/library/system.globalization.numberformatinfo.currencydecimaldigits.aspx
is there way assign value currencydecimaldigits? had problem before?
thanks
found solution, numberformatinfo read only, therefore need call clone() method when assigning it:dim globalization.numberformatinfo = new globalization.numberformatinfo() = a.clone() dim b integer = 4 a.currencydecimaldigits = b
Comments
Post a Comment