Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
33%
Installation Wizard into new VRC
39%
Manual into existing VRC
6%
Manual into new VRC
22%
Total votes: 49

Baanboard at LinkedIn


Reference Content

 
gbf.get.next()
By patvdv at 26 Feb 2008 - 21:57

gbf.get.next()

Syntax

long gbf.get.next( long obj.id, ref long next.id, ref string
    next.key(), ref long next.value, ref long next.type)

Description

Returns the next brother object of the given object. The returned next.id is the GBF identification, to be used on subsequent gbf.get.parent(), gbf.get.first.child() , gbf.get.next() and gbf.update.object() function calls. The next brother is further identified by the next.key and next.value, which have been given to the GBF on a preceding gbf.add.object() call.

The special successful completion return value GBF.LAST indicates that the next.id object returned is the last object, which means that this next.id cannot be used in a subsequent gbf.get.next() function call. If this is attempted, that is a gbf.get.next() on this last brother, then GBF.ILL.OBJECT will be returned.

Warning

This function should not be used during a refresh. In other words, not during a gbf.get.top.level() or a gbf.get.children() since that may lead to unpredictable results when, for example, you use this function to get the children of the object for which the gbf.get.children() was started in the first place. Not refreshed children (in other words the dirty children) will not be returned.

Arguments

obj.id

The unique object identification.

next.id

Returns the unique child (object) identification.

next.key()

Returns the key of the child (object) by which it is known in the application.

next.value

Returns the value of the child (object) that is used to further identify this object (in case the object appears more than once in the tree).

Note that a value of 0 means something special, see gbf.update.object().

next.type

The type of node child.id:

  • GBF.HEADER the returned child.id is a header node
  • GBF.INTERIOR the returned child.id is an interior node.
  • GBF.LEAF the returned child.id is a leaf node

Return values

0

Successful completion

GBF.LAST

Successful completion, and next.id is the last brother

GBF.ILL.OBJECT

Illegal obj.id given, or obj.id has no further brothers

GBF.ILL.STATE

GBF is not in the right state to deal with this function

Related topics


0
No votes yet


All times are GMT +2. The time now is 12:20.


©2001-2018 - Baanboard.com - Baanforums.com