hi all
I have new qu
if i have verble i need size length
and first 4 left str or int or real verble
and first 4 right str or int or real verble
sample
len(1000)=4 in sql server 2005 how i write in Ax x++
left(1000,2)=10 how i write in Ax x++
right (1000,3)=000 how i write in Ax x++
thanks for help
HI Bas,
Try this it may help you…
static void Job77(Args _args)
{
int i =1000;
int len;
;
len = strlen(int2str(i));
info(substr(int2str(i),1,2));
info(substr(int2str(i),2,len));
}
Naresh Kolli
Naresh - third function is wrong in your code.
Instead of: info(substr(int2str(i),2,len))
…it should be:
info(substr(int2str(i),len-2,len));
thanks all
but also i need this
in all fun ’ s no length size
length (1000)=4
length (100)=3
length (10)=2
length (1)=1
how many characters
i didnt get you what you are saying…
I didn’t get this… what we gave you already - that was a fully functional code, just change your number and test it.
Strlen(int2str(1000)) returns 4, which is equal to your length (1000)=4