Go Back

User login

Frontpage Sponsor


Google search

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

Baanboard at LinkedIn

Reference Content

By patvdv at 26 Feb 2008 - 21:57



#include <bic_gbf>

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


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.



The new description length.

Return values


Successful completion


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


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

Related topics

No votes yet

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

©2001-2018 - -