Create user defined mod method in axapta | Dynamics Axapta Coverage and help materials or tutorials for developer using language x++

Pages

Addthis Sharing Gadget

Wednesday, January 18, 2012

Create user defined mod method in axapta

Education and Entertainments  Earn Money its Real  Experience of knowledge  Imortant Weblink collections   Fun and Entertainment   God thoughts  

Create user defined mod method in axapta
There is no inbuilt function to get mod of two values to we can create our own function to get mod by following way.

real UserDefinedMod(real x, real y)
{
    ;
    return (x - ((trunc(x / y) * y)));
}

1 comments:

Nowhere Man said...

Hi !

You can get the MOD of two values doing:

modValue = 7 mod 6;

info(strfmt("result: %1", modValue));

It should show: "result: 1"

Check it and then post a comment.

Keep posting!

Post a Comment

Video clips-ERP

Loading...

Follow blog by Email

Daynamics Axapta Coverage

Status of Website

View My Stats
Active Search Results
Wink Bingo | Slots Tips | Football manager 2010 | blackjack free | Poker Stars
Technology Blogs
Technology blog Submitdomainname.com