X++ Like Operator

  • Comments 1

we can use it for strings in MS Dynamics AX like this :

static void LikeTest()


    str str;
    ;
    str="expiry";

    if(str like "exp*")
       info('"like work ");
}



  • This is indeed a little unknown and underused feature. It's very useful since you can use this operator in the WHERE clause of a query in X++ as well.