x++


What is the _isMexican boolean for in the Global::Checkpower method?


Quite simply, what is this method for, and what is _isMexican? My online searching has proven futile.
http://msdn.microsoft.com/en-us/library/global.checkpower.aspx
This has to do with how Dynamics AX translates numeric currency values into text.
Try creating a new job in the AOT with the following contents:
static void Job1(Args _args)
{
info(Global::numeralsToTxt_ES(120000.45,GenderMaleFemale::Female,0,"MXN",1,0));
}
The parameters are as follows:
Currency Amount
Gender
Enclose (not certain)
ISO Currency Code
isMexican Boolean
isCheck Boolean
With isMexican = 1, it outputs this result: Ciento veinte mil 45/100
With isMexican = 0, it outputs this result: CIENTO VEINTE MIL con CUARENTA Y CINCO centimos
So basically, this is a text formatter for translation of currency amounts into a given language. Some languages or Countries have specific ways they want the written form to appear, that boolean influences it.
The CheckPower method is part of this logic, and it recursively calls itself to iterate over all the powers of a given currency (Billions, Millions, etc), each time adding the proper word to the currency string.

Related Links

How can you get a detailed error descriptions in Dynamics AX?
How to get the length of an array?
X++ loop through lines in grid control
Concatenating row values in x++
How do you access a macro in the AOT macro node?
How can I set the Backgoundcolor of an AX2012 Action Pane Button
How to Edit address using X++ in AX 2012
Number sequence issue Ax 2012?
Find code that's running in a Batch Job
What is the _isMexican boolean for in the Global::Checkpower method?
AlwaysOnTop property not behaving properly
Boolean AND logic in Microsoft Dynamics AX 2012 AIF QueryCriteria
Table: PrintMgmtSettings Field: Printjobsettings(Blob)
What happened to the hrplimittablerelationship table in ax-2012-r2?
Why is my changes ignored to releaseupdate scripts in dynamics ax 2012 r2
What is “old sys” exactly and why would I receive errors in 2012 because of a missing Macro?

Categories

HOME
phantom-dsl
nunit
datastore
angular-formly
jmx
jwplayer
spring-data-redis
vscode-extensions
visual-studio-emulator
code-coverage
barcode
teechart
sendgrid-api-v3
octave
appcelerator-studio
text-mining
plist
shared-libraries
flash-player
magnetic-cards
flatpak
qsqlquery
heat
modbus-tcp
internationalization
google-picker
imessage
foreign-keys
replication
windows-xp
simpleitk
drive
inno-download-plugin
roslyn
tosca
highstock
data.stackexchange.com
amazon-quicksight
vex
userdefaults
scatter3d
hreflang
login-script
sql-delete
engine.io
graphhopper
flatmap
gdata
kill
chronicle-map
show-hide
apache-directory
x++
dynamic-linq
seq
ampps
rxtx
javafx-css
juice-ui
testrail
change-tracking
angular2-testing
autosar
pacemaker
microstation
latin
async.js
uicolor
watch-os-2
synonym
kango-framework
sklearn-pandas
uiactionsheet
findfirst
pushbots
procedural-programming
grouping-sets
strawberry-perl
mutual-authentication
dsym
websphere-esb
conditionaltagsupport
neos-server
font-awesome-4.0.0
alice
preload
android-sdk-2.3
iboutlet
rmiregistry
garbage
virtualpathprovider
luabind
ikimagebrowserview
fsevents
google-ajax-api
mbeans
umra
xui
uideviceorientation
strtod
purepdf
wordprocessingml
asynchronous-wcf-call
escrow
fdf
java1.4
xslcompiledtransform
change-management

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App