Tag Archives: CLRInterop
Language Specific Number Formatting
I recently encountered a situation in AX where I needed to convert a number into a string that was specific to the current user’s language setting. AX provides a method called num2str for converting a real number into a formatted … Continue reading
Calculating a File Hash
Some time ago a colleague presented me the task of computing a SHA256 hash for an output file. This hash would be stored in a table in a hexadecimal string format, along with the file info, to ensure that the … Continue reading
Posted in AX 4.0, Microsoft Dynamics AX
Tagged CLRInterop, Code Sample, File Hash, MD5, SHA, X++
Comments Off
Parsing Date Strings
Dynamics AX provides functions for parsing date strings into a date object but they are limited at best. The following static method uses the .Net date parsing functionality to create a X++ date object from any valid date string without … Continue reading
Posted in AX 2009, AX 2012, AX 4.0, Microsoft Dynamics AX
Tagged CLRInterop, Code Sample, Dates, X++
Comments Off