monica1
9th April 2008, 18:38
I have a session that is called for 4 different sessions via AFS. There is any way to know which of these sessions is the caller?

Thank you in advance,

NPRao
9th April 2008, 19:33
Add the piece of code in the program script:
before.program:
string calling.session(16)
import("prog.name$", calling.session)
Then add related code -
group.1:
init.group:
if trim$(calling.session) = "zmmig2100m000" then
disable.commands(first.view, next.view, prev.view, last.view,
first.set, next.set, prev.set, last.set)
endif
on case calling.session
case "td1234m000":
do.something()
break
case "td1234m001":
do.nothing()
break
default:
no.idea()
break
endcase

monica1
10th April 2008, 08:22
Thank you very much for your answer.
It works fine.