Lade...
 

Index Beispiel

// Example 1 - simple indexpath . . . Var(person) . . . [ person "uniqueID" POINT_TO_KEY ORDERED | ] AddIndex(CX_PERSON, children) // Example 2 - indexpath referring to specifier.slot . . . "current.comment" AddIndex(CX_PERSON) . . . // Example 3 - with pseudo-function Retrieve, no automatic index maintenance! "Retrieve(\"LastUpdate()\", name, firstName)" AddIndex(CX_PERSON) // Example 4 - // InstantView® code to let the index manager display the indices created above Header(h, 10, 10, 700, 10, descriptors) { Prompt(this, FONT(0), 0, 1, "Index") Prompt(pathExpression, FONT(0), 110, 1, "Indexpath") Prompt(creation, FONT(0), 230, 1, "created") } ObjectList(CX_INDEX_MANAGER::descriptors, AUTO_POSITION, HZ_SCROLL_BAR, ENTIRE, ITEM(, 13), 10, 20, 700, 40) [ INITIALIZE: "CX_INDEX_DESCRIPTOR::this" SetFormat [ "CX_INDEX_DESCRIPTOR::pathExpression", COLOR BLUE ] SetFormat "CX_INDEX_DESCRIPTOR::creation" SetFormat [ "CX_INDEX_DESCRIPTOR::osExpression" COLOR LIGHTRED, 0, 7, COLUMN 1 ] SetFormat [ "CX_INDEX_DESCRIPTOR::owner" COLOR GREEN 0, 7, COLUMN 2 ] SetFormat GetManager(INDEX) FillWindow ] Header(f, 10, 61, 700, 10, descriptors) { Prompt(osExpression, FONT(0), 0, 1, "Indexpath (OS format)") Prompt(owner, FONT(0), 120, 1, "Owner") }

ix.bmp (246534 Byte)

Einträge in CLASSIX.INI

für Beispiel:  
1 -
2 Index(current.comment, 7)
3 Retrieve(\"LastUpdate()\", name, firstName, 5)