Hi Steffen, 

 

I think you are looking for this: (just paste it in a job)

 

    #AOT

    #Properties

    TreeNode            table;

    TreeNode            tables = TreeNode::findNode(#TablesPath);

    TreeNodeIterator    iterator;

    Str 3               saveDataPerCompany;

    Counter             i;

    int                 start, stop;

    ;

 

    start = TimeNow();

    

    //Set the iterator to the tables path

    iterator = tables.AOTiterator();

    //get the first table

    table = iterator.next();

 

    setprefix('Tables which have set "Save Data Per Company" to "No"');

 

    while(table)

    {

        //While tables can be found, check their 'SaveDataPerCompany'
property

        saveDataPerCompany =
table.AOTgetProperty(#PropertySavedatapercompany);

 

        //If it is set to 'No', list it in the infolog

        if(saveDataPerCompany == 'No')

        {

            info(table.AOTname());

            i++;

        }

        else

            print table.AOTname();

            

        //Get the next table

        table = iterator.next();

    }

    

    stop = TimeNow();

    

    setPrefix('Result:');

    info(strfmt("Runtime: %1 ", time2str(stop - start, 1, 1)));

    info(strfmt('Found %1 tables', i));

 

Kind regards,

R.

 
 
Raf Uyttenhove
Quadreon NV - AMCC
Technologiepark 1
B-9052 Ghent-Zwijnaarde
Phone  +32 9 245 96 73
Fax    +32 9 220 50 19
[EMAIL PROTECTED]
http://www.amcc.be
 
This email and any attached files are confidential and may be legally 
privileged. If you are not the intended recipient, any disclosure, 
reproduction, copying, distribution, or other dissemination or use of this 
communication is strictly prohibited. If you have received this transmission in 
error please accept our apologies, notify the sender immediately and delete 
this mail together with all attachments that may have been added.


[Non-text portions of this message have been removed]

Reply via email to