gulya2005
30th May 2005, 09:06
Please help to know name of parent session from child process

beginer
30th May 2005, 09:47
Hi ,

From the Parent Session export the prog.name$ ( predifined variable ) to the child process.
I mean use a varible & assign the value of prog.name$ to it & import the variable in child session.

Regards,

gulya2005
30th May 2005, 09:58
Thank, but the parent session is the standart session of BAAN and I can not to use export progname$. I need import name of parent session.

veyant
30th May 2005, 12:29
take a variable and assign value of prog.name$ to it in child process. or use parent and assign its value to any variable.

parent returns proces id of parent process.

i used prog.name$ in some sessions where i coded in child session program script that if prog.name$ is X then do this and it it is Y then do this.


sandy

JaapJD
30th May 2005, 13:53
The only thing you have to do is:

string parent.prog(14)

import("prog.name$", parent.prog)
parent.prog will contain the session code of the calling session.