Lade...
 

SetLimit

SetLimit

SetLimit(windowID, oboxID), SetLimit(, oboxID), SetLimit

Parameter:  Bezeichner eines Windows und einer Objektbox

Stack
Stack Position Beschreibung
Stack(In) Top n
Stack(Out) Top -

Die Objektbox stellt maximal n Elemente dar, auch wenn FillObox oder UpdateObox mit einer größeren Collection aufgerufen wird. Mehrfach Aufrufe von FillObox oder UpdateObox ignorieren die maximale Begrenzung.

windowID mit Stack übergeben: SetLimit(STACK, oboxID)

Stack
Stack Position Beschreibung
Stack(In) Top windowID
  Top-1 n
Stack(Out) Top -
Code-Beispiel:
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) ;