functions in ax 2012(con,date,str)
static void CON_FunctionsAll(Args _args)
{
date d,lastdayofmth;
int m,n,o,p;
str s;
real r,a,q;
int iAmounts[1];
// d = mkDate(1,1,2001);
//m = MonthsOfYear(systemDateGet());
m = dayOfMth(systemDateGet());
s= dayName(dayOfMth(today()));
o = dayOfWk(today());
p = dayOfYr(systemDateGet());
r = decRound(1234.56789,-4);
a = dg(100,20);
q = frac(1234.456);
//n = mthOfYr(systemDateGet());
info(strFmt("%1--%2 --%3--%4",s,m,o,p));
info(strfmt("%1--%2--%3",r,a,q));
info("--(Next, normal int array, dimOf() accepts it.)");
info(int2Str(dimOf(iAmounts)));
print "Current function context is " + funcName();
pause;
/*int i;
i = enumCnt(NoYes);
info(strFmt("%1",i));
info(formStr(CustTable));*/
-------------------------------------------------------------------
str s,p,q,r,t,u,v,w,x,y,z,b;
int i,j,a;
p = strDel("asqwert",2,3);
i = strFind("asqwert","s",2,3);
s = strColSeq("ASDFGHasdfgh");
q = strIns("abcdef","123",4);
r = strKeep("asdfgsdfasdfgds","sdg");
j = strLen("lokiju");
t = "first-line\nsecond-line\nlast-line";
u = strLTrim(" 1234-4321");//strRTrim
v = strLwr("ASDCasdc");//strUpr
w = strPoke("asdf","12",2);
x = strPrompt("ch",6);
y = strRep("ab",6);
z = strRem("AbcdfGBa","abg");
a = strScan("abcdefghij","ab",1,10);
b = subStr("abcdefghij",5,3);
info(strFmt("%1--%2--%3--%4--%5--%6--%7--%8--%9--%10--%11--%12",s,p,i,q,r,j,u,v,w,x,y,z));
info(strFmt("%1--%2",a,b));
info(strLine(t,2));
//o/p:
info1: asdfghasdfgh--aert--2--abc123def--sdgsdsdgds--6--1234-4321--asdcasdc--a12f--ch..: --abababababab--AcdfGB
info2: 1--efg
info3: last-line
-------------------------------------------------------------------
/* container c = [1,2,3,4,"chaitu","kumar",3.14];
int i;
for(i=1;i <= conLen(c);i++)
{
info(strFmt("%1",conPeek(c,i)));
}*/
-------------------------------------------------------------------
container c = ["item1", "item2", "item3"];
int i;
int j;
;
//c = connull();
c = conPoke(c,2,"Reddy");
c = conIns(c,4,"chaitu");
info(strFmt("%1 %2",conPeek(c,4),conPeek(c,2)));
//info(strFmt("%1",conPeek(c,1)));
//info(strFmt("%1",conLen(c)));
//i = conPoke(c, 1,"12345")
//i = conFind(c, "item2");
j = conFind(c, "item1");
//info(int2str("%1",conLen(c)));
//(strFmt("%1",));
/*container c = [1234, "chaitu",3.14];
c = conPeek(c,3);
//c = conDel(c,1,2);
info("Deleted items");*/
-------------------------------------------------------------------
/*date d,lastdayofmth,prevemth,nextyear,preveqtr;
d = mkDate(1,11,2016);
info(strFmt("%1",d));
lastdayofmth = endmth(today());
nextyear = nextYr(today());
prevemth = prevMth(systemDateGet());
preveqtr = prevQtr(systemDateGet());//nextQtr(systemDateGet());
info(strFmt("%1",lastdayofmth));
info(strFmt("%1",prevemth));
info(strFmt("%1",nextyear));
info(strFmt("%1",preveqtr));*/
/* int d,month,years;
d = dayOfMth(systemDateGet());
month = mthOfYr(systemDateGet());
years = year(systemDateGet());
info(strFmt("%1",month));
info(strFmt("%1",years));
info(strFmt("%1",d));*/
//any2guid
/*//any2enum
noyes mynoyes;
int i;
str s;
;
i = 0;
mynoyes = any2enum(i);
info(strFmt("%1",mynoyes));
Global::info(strfmt("'%1' - is the output, from input of the %2 as int.", myNoYes, i));*/
/*
//any2date
date mydate;
str s;
int i;
;
s = "2010 6 17";
mydate = any2date(s);
info(strFmt("%1",mydate));
i = 40361;
mydate = any2date(i);