static void GetProjects(Args _args)
{
ProjectListNode projectListNode;
treenodeIterator iterator,projectiterator;
TreeNode treenodeprivate,treenodeprivateprojects,treenodeShared,treenodesharedprojects;
int i;
;
projectListNode = infolog.projectRootNode();
treenodeprivate = projectListNode.AOTfirstChild();
iterator =treenodeprivate.AOTiterator();
setprefix("Private projects");
for(i = 1; i<=treenodeprivate.AOTchildNodeCount();i++)
{
treenodeprivateprojects = iterator.next();
info(findproperty(treenodeprivateprojects.AOTgetProperties(),"Name"));
}
treenodeshared = infolog.projectRootNode().AOTfindChild('Shared');
projectiterator = treenodeshared.AOTiterator();
setprefix("Shared Projects");
for(i=1; i<= treenodeshared.AOTchildNodeCount();i++)
{
treenodesharedprojects = projectiterator.next();
info(findproperty(treenodesharedprojects.AOTgetProperties(),"Name"));
}
}
static void Date(Args _args)
{
info(date2str(today(),123,2,2,2,2,4));
info(date2str(systemDateGet(),123,2,2,2,2,4));
info(date2str(DateTimeUtil::date(DateTimeUtil::getSystemDateTime()),123,2,2,2,2,4));
}
static void TableData_without_TableBuffer(Args _args)
{
print (select MyTabble7).FirstName;
print (select MyTabble7).LaStNAme;
pause;
}
static void Job_To_GetTableIds(Args _args)
{
Dictionary d1;
TableId t1;
;
d1=new Dictionary();
t1=d1.tableNext(0);
while(t1)
{
info(int2str(t1));
info(tableid2Name(tableId));
t1= d1.tableNext(t1);
}
}
static void JobToCountTables(Args _args)
{
Dictionary dict;
int totalTables;
dict=new Dictionary();
totalTables=dict.tableCnt();
info(strfmt("%1",totalTables));
}
No comments:
Post a Comment