Hi guys,
Reverse string in Dynamics AX.
static void reverseString(Args _args)
{
int i;
str temp;
str retVar = 'DynamicsAX';
int length;
str getvalue,RV;
;
length = strLen(retVar);
for(i=length; i>=1; i--)
{
temp =SubStr(retVar,i,1);
getvalue +=temp;
// other way with strReverse function
RV = strReverse(retVar);
}
info(RV);
}
Reverse string in Dynamics AX.
static void reverseString(Args _args)
{
int i;
str temp;
str retVar = 'DynamicsAX';
int length;
str getvalue,RV;
;
length = strLen(retVar);
for(i=length; i>=1; i--)
{
temp =SubStr(retVar,i,1);
getvalue +=temp;
// other way with strReverse function
RV = strReverse(retVar);
}
info(RV);
}
No comments:
Post a Comment