SetLimit
SetLimit(windowID, oboxID), SetLimit(, oboxID), SetLimit
parameters: Identifier of a Windows and an object box
Stack | Position | Description |
---|---|---|
Stack(In) | Top | n |
Stack(Out) | Top | - |
The Object User Box represents a maximum of n elements, even if FillObox or UpdateObox is called with a larger collection. Multiple calls to FillObox or UpdateObox ignore the maximum limit.
windowID passed with stack: SetLimit(STACK, oboxID)
Stack | Position | Description |
---|---|---|
Stack(In) | Top | windowID |
Top 1 | n | |
Stack(Out) | Top | - |
Code example:
ObjectTree(msgTree, DRAG_COPY, 5, 5, 680, 280) [ INITIALIZE: "CX_MODULE::Name()" SetFormat "CX_MODULE::description" SetFormat 100 SetLimit // Set limit to 100 objects ] // Set limit out of a macro Define(SetListBox) [ "CX_CASH_BOOK::uniqueID" HEADER T("Name", "Name") COLOR LIGHTBLUE ] SetFormat(SelectWin, ListBox) [ "CX_CASH_BOOK::current.date" HEADER T("per", "as of") JUSTIFY_RIGHT COLOR BLACK ] SetFormat(SelectWin, ListBox) limitSet SetLimit(SelectWin, ListBox) ; // Set limit with widget as parameter Define(SetListBox) -> widget [ "CX_CASH_BOOK::uniqueID" HEADER T("Name", "Name") COLOR LIGHTBLUE ] widget SetFormat(, STACK) [ "CX_CASH_BOOK::current.date" HEADER T("per", "as of") JUSTIFY_RIGHT COLOR BLACK ] widget SetFormat(, STACK) limitSet widget SetLimit(, STACK) ;