![]() |
#7 |
Участник
|
У меня работает вот такой пример:
X++: System.Globalization.CultureInfo myCulture; System.Threading.Thread myThread; Integer i; str s = "-123 456 789,00р."; ; myThread = System.Threading.Thread::get_CurrentThread(); myCulture = myThread.get_CurrentCulture(); try { i = System.Int32::Parse( s, System.Globalization.NumberStyles::Any, myCulture ); info( strfmt( '%1', i ) ); } catch (Exception::CLRError) { info( AifUtil::getClrErrorMessage() ); } |
|
Теги |
.net, как правильно, преобразование типов |
|
|