Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


Poll
What version of Baan have you installed
Baan IV
31%
FP3
4%
FP4
0%
FP5
0%
FP6
2%
FP7
4%
10.2 (incl. 10.2.1)
4%
10.3
7%
10.4
19%
10.5
27%
Other
2%
Total votes: 84

Baanboard at LinkedIn


Reference Content

 
exec_function()
By patvdv at 26 Feb 2008 - 21:57

exec_function()

Syntax

long exec_function( long dll_id, long func_id [, ref void return_value,
 arg, ...] )

Description

This executes a function previously loaded by a call to get_function(). After the function has been loaded, you can call exec_function() any number of times to execute the function.

Arguments

dll_id

The identification number of the DLL that contains the function, as returned by load_dll().

funct_id

The identification number of the function, as returned by get_function().

return_value

This stores the return value (if any) of the function.

arg ...

The arguments of the function (if any). These are function dependent.

Return values

0

Success.

-1

Error; DLL not found.

-2

Error; Function not found.

Context

Bshell function.

Example

 long dll_id, func_id
 long ret, ret2

 dll_id = load_dll("otisfc0220")
 if dll_id then
        func_id = get_function( dll_id, "tisfc0220.store.quantities" )
        if func_id then
            select tibom010.noun, tibom010.qana, tibom010.scpf
            from tibom010
            selectdo
                ret = exec_function( dll_id, func_id, ret2, tibom010.noun,
                                     tibom010.qana, tibom010.scpf )
            endselect
        endif
 endif

Related topics


0
No votes yet


All times are GMT +2. The time now is 21:28.


©2001-2017 - Baanboard.com - Baanforums.com