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


gbf.get.resource()

Syntax

#include <bic_gbf>

long gbf.get.resource( long resource.type, ref <type>
resource.value,...)

Description

Returns the current value for the given resource types. The arguments are given in name value pairs. For the possible resources see gbf.set.resource() . In almost all cases the <type> will be long (or a domain of basic type int, long, enumerate, bitset and so on.), except when the resource.type is DsNtitle, since in this case the <type> must be multi-byte string.

This function may be used after the GBF run has finished to get the setting for this specific user, and restore them at the next run.

Note

When the Tree Control is used, it may very well be that the actual requested resources are NOT supported by this Tree Control. Nevertheless in these cases no error will be returned.

Arguments

resource.type

The resource type that is used to get the value. For a list of resource types see gbf.set.resource() .

resource.value

Returns the current value of the resource type.

Return values

0

Successful completion

GBF.ARG.ERROR

One or more of the given resource.value references is wrong

GBF.ILL.RESOURCE.
TYPE

Unknown resource type specified

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


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