Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


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

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 01:20.


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