Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
14%
200 - 500 GB
32%
500 - 800 GB
4%
800 - 1200 GB
4%
1200 - 1500 GB
11%
1500 - 2000 GB
14%
> 2000 GB
21%
Total votes: 28

Baanboard at LinkedIn


Reference Content

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

gbf.get.previous()

Syntax

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

Description

This function returns the previous brother object of the given object. The returned prev.idis the GBF identification, to be used on subsequent gbf.get.parent() , gbf.get.first.child() , gbf_get_next()<_A> and gbf_update.object() function call. The previous brother is further identified by the prev.key and prev.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 prev.id object returned is the last object, which means that this prev.id cannot be used in a subsequent gbf.get.next() function call. If this is attempted, that is a gbf.get.previous() on this last brother, then GBF.ILL.OBJECT will be returned.

Warning

This function should not be used during a refresh, so not during a gbf.get.top.level() or a gbf.get.children() since that may lead to unpredictable results when for example using 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.

prev.id

Returns the unique previous (object) identification.

prev.key

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

prev.value

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

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

prev.type

The type of node prev.id:

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

Return values

0

Successful completion

GBF.LAST

Successful completion, and prev.id is the first previous 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 01:36.


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