Sunday, 5 March 2017

Like and Not like operation in ax 2012


Like and Not like operation in ax 2012

For Like operation:

static void likeOperation(Args _args)
{
    CustTable                         custTable;
    
    while select custTable where custTable.AccountNum like "1101"
    {
        info(custTable.AccountNum);
    }
}

For Not Like operation:

static void NotlikeOperation(Args _args)
{
    CustTable                         custTable;
    
    while select custTable where !(custTable.AccountNum like "1101")
    {
        info(custTable.AccountNum);
    }
}

Thank you

No comments:

Post a Comment