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.set.desc.length()
By patvdv at 26 Feb 2008 - 21:57

gbf.set.desc.length()

Syntax

#include <bic_gbf>

long gbf.set.desc.length(long desc.length)

Description

The following functions are actually defines and they are defined as:

gbf.set.desc.length(desc.length) :
  gbf.set.key.desc.length(0, desc.length)

The gbf.set.key.desc.length() function adjusts the length of the key of an object and/or the length of the description of the object. The default length for the object key is 64 and for the object description is 60. A new value of 0 means that the associated length is not changed. So, for example, gbf.set.key.desc.length(100, 0) will increase the key length to 100 and leave the description length at 64 (see also the two macros defined at the top of this description).

All objects will use the same key length and description length. That is regardless of the object, for example: top level, interior, leaf object, the key length will always be the same. The same holds for the object description.

Note the bigger these lengths are made, the more memory is needed to store the objects. This means that making these too big will lead to memory problems further on. So, this function should also be used to shrink these lengths if they are too large for the current application. For example, if it is known that the key will never exceed 10 characters, then a gbf.set.key.length(10) should be made.

This function can only be called before any object has been created, so once a gbf.start() has been given, this function will always return an error.

Arguments

desc.lentgh

The new description length.

Return values

0

Successful completion

GBF.ILL.LENGTH

Key.length and/or desc.length < not enough memory

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:14.


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