strCmp (Compare Two Strings)
info("int strCmp(str text1, str text2)");
info("Compares two text strings. The function is case-sensitive.");
info("0 if the two strings are identical, 1 if the first string is longer, or -1 if the second string is longer.");
info("e.g.");
info("strCmp(\"abc\",\"abc\") = " + int2str(strCmp("abc","abc")));
info("strCmp(\"ABC\",strUpr(\"abc\")) = " + int2str(strCmp("ABC",strUpr("abc"))));
info("strCmp(strLwr(\"ABC\"),\"abc\") = " + int2str(strCmp(strLwr("ABC"),"abc")));
To Cancel Deliver Remainder through X++ you can use below code sample. Thanks. static void _CancelDeliverRemainder_Sales(Args _args) { SalesLine SalesLine = SalesLine::find('SO0013', true); ; if (SalesLine) { // Set remaining inventory Qty to zero SalesLine.RemainInventPhysical = 0; // Set remaining physical Qty to zero SalesLine.RemainSalesPhysical = 0; // We have to cancel the SalesLine SalesLine.PurchStatus = PurchStatus::Canceled; SalesLine.update(); ...