Thanks for that great page:
https://thwidmer.wordpress.com/2013/07/31/function-to-use-in-queries-filters/
function etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
function etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
27 Eylül 2019 Cuma
6 Mayıs 2016 Cuma
AXAPTA - Sign function doesn't work correctly
Sign function doesn't work correctly in AX 2009 and 2012. It should returns -1 for negative numbers, 0 for zero and +1 for positive numbers. But it gives -1 for negative and +1 for others.
Sign at Global:
static real sign(real num)
{
return num >= 0 ? 1 : -1;
}
My correction:
static int sign(real num)
{
if (num < 0)
return -1;
else
return num > 0 ? 1 : 0;
}
Sign at Global:
static real sign(real num)
{
return num >= 0 ? 1 : -1;
}
My correction:
static int sign(real num)
{
if (num < 0)
return -1;
else
return num > 0 ? 1 : 0;
}
6 Nisan 2012 Cuma
AXAPTA - Declare global function
Add your static method at AOT->classes->Global:
public static void Test()
{
;
info("my global function");
}
***
static void TestMyGlobalFunction(Args _args)
{
;
test();
}
public static void Test()
{
;
info("my global function");
}
***
static void TestMyGlobalFunction(Args _args)
{
;
test();
}
Kaydol:
Kayıtlar (Atom)