Lade...
 

Vorherige

Previous

Previous

Parameter: Objekt vom Typ CX_CURSOR

Stack
Stack Position Beschreibung
Stack(In) Top CX_CURSOR
Stack(Out) Top Objekt

Gibt das Element aus einer Collection, das vor dem aktuellen Element steht, zurück. Aufgerufen wird es auf einem Cursor, der auf jeder Collection durch den gleichnamigen InstantView Befehl geholt werden kann (siehe Beispiel unten).

Rückgabeparameter:  Bezeichner einer Klasse - Objekt an der Stelle des Cursors in der Collection, auf die der Cursor weist.

// Iterate backwards through all items (can be done with iterate(BACKWARD) also, just to

// show the possibilities of cursor handling!)

FindAll(CX_DISPO_ACCOUNT) Cursor -> itemCursor

// Set Cursor to last element and Drop the returned object (will be got on next Current statement)
itemCursor Last Drop

do
  // Get current item
  itemCursor Current -> item
  // Do something...
  item Copy(uniqueID) -> itemUniqueID
  // Set cursor to previous item. If no previous item is there (would be returned on "Previous"), break the loop
  itemCursor Previous ifnot break

loop

Verwandte Themen