Тема: int2hex
Показать сообщение отдельно
Старый 29.12.2016, 14:44   #3  
Alex_KD is offline
Alex_KD
Участник
AxAssist
MCBMSS
Соотечественники
 
522 / 362 (14) ++++++
Регистрация: 06.07.2006
Адрес: Melbourne, Down Under
И ускорить на порядок

X++:
// Store integer 182
int intValue = 182;
// Convert integer 182 as a hex in a string variable
string hexValue = intValue.ToString("X");
// Convert the hex string back to the number
int intAgain = int.Parse(hexValue, System.Globalization.NumberStyles.HexNumber);
http://stackoverflow.com/questions/1...and-back-again
__________________
AxAssist 2012 - Productivity Tool for Dynamics AX 2012/2009/4.0/3.0