monica1
28th September 2004, 18:59
I have a program script that call to a DLL function with 2 arguments (input arguments). When I call the function I have the 2 arguments, but in the first line of the script of DLL function the first argument is blank.
I see in the principal program if i have the same variable defined but i haven't.

Where is my problem?

mark_h
28th September 2004, 19:08
Could you post some of the code? Like declarations and calls from the script and maybe the first few lines of the DLL code. This will help with seeing what the problem might be.

Mark

monica1
28th September 2004, 19:22
function read.main.table()
{
table tcatra200

domain tcorno new.orno

select catra200.*
from catra200
where catra200._index1 = {1}
selectdo
new.orno = generar.orno(catra200.bpid, catra200.ctyp)
endselect
}

In DLL script:

function extern domain tcorno generar.orno( domain tccom.bpid i.bpid,
domain tcctyp i.ctyp)
{
domain tccom.bpid bpid.aux

bpid.aux = i.bpid |** In this point I haven´t the number of partner

}

mark_h
28th September 2004, 20:04
I take it catra200.bpid is the same domain? Just wondering if there is something special about this domain - segmented or something. Since this is Baan V I am not sure of the right questions to ask.

Mark

monica1
29th September 2004, 09:26
The variable i.bpid isn´t define in my principal program script, but bpid.aux yes, it's define like extern in the principal program.
Thank you,

maxime
29th September 2004, 09:29
Hi,

Please try declaring the table definition outside the function...that is at the global level.

Maxime.