Sandy Blondino
11th October 2013, 16:39
Hello,
Here is my problem. I wrote a simple 3GL script and called it from a custom 4GL Baan session using activate(). But when I run the 4GL session, I get an error when it tries to activate the 3GL script... "Can't read session or object".

I compiled the 3GL script, but I guess I'm missing something. What do I need to do to get the 3GL to run?

Thanks for your help,
Sandy

bhushanchanda
11th October 2013, 17:03
Hi,

How are you trying to call it? Have you checked script type?

ret = activate("otcbed001")
OR
ret = wait.and.activate("otcbed001")

Put an "o" before the script name and try again.

You can check the return value for the function.

If it still doesn't work, try to create a new 3GL script.

Sandy Blondino
11th October 2013, 18:29
Aha! That was it. I forgot to call the 3GL with the o in front of the script.
Now it works.

Thanks.