Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:25 pm
by Arjan van Hasselt >> Fri, 2 Jun 2000 2:01:43 GMT
I have used the dynaDictionary class in the AdvancedFaultApplication
Here is the code ...
=============================
// Create Dynamic Dictionary Object
create dynaDict;
// Indicate which class it is going to collect
dynaDict.setMembership (myClass);
// Add the keys in order and signify DESC or ASC
foreach row in 2 to tableKeys.rows do
dynaDict.addMemberKey (tableKeys.getCellText (row, 1), tableKeys.getCellText (row, 2).Integer.Boolean, false);
endforeach;
// Signal end of key definition and mention if Collection is allowed duplicates!
dynaDict.endKeys(true);
// copy objects into the dictionary
myClass.instances.copy (dynaDict);
// now iterate your way thru the dictionary =========================================
Simple stuff really....AJ