richard
13th July 2004, 17:30
Hello,

I'm programming a special ttstpconv to drive a fax device.
This 3GL opens a window to ask for fax number and name.
It should work for all baan sessions.

I'm using new.window, print, read.input. All is working fine, but at the end of the session, the black screen reminds open (after del.window).
If I close the window with the cross, it's OK. If I enter return, the session goes back to the device screen and the black screen is still open.

An end() order doesn't change anything.

How can I close the window ?

mark_h
13th July 2004, 21:43
Not sure if this helps, but I saw where end.process() was mentioned with regards to del.window. Also I saw this in the knowledge quest "The screen is not refreshed automatically. If you use the bx-server, however, a refresh is given by X." So maybe when you return to the calling session a refresh is in order. I am not sure and am guessing at this point.

Mark

Hitesh Shah
14th July 2004, 07:20
We too have this black screen when there is a message in the 3GL program or any other UI matters. The black screen remains open as long as it's runnning. When we use X , the program itself ends (which we do not want). So black screen remains open in our case.

I think end(), exit(),stop() and abort() all should work in the program (in our case the program gets terminated when it executes the last statement). Are u sure end() does not work in the program.

richard
21st July 2004, 09:45
Hello,

I didn't know that a 4GL session can be used as a "ttstpconv".
With this new script (including a execute(cont.process) and end() ), it's working and the session ends.

Thanks for your help.

Richard