hanslokhoff
25th March 2004, 20:27
Hi all,

I am writing a 3-GL script as a subsession (no form in this session).
The only thing I want this subsession to do, is to open a MENU and to pass zoom.item

It works so far, BUT:
The menu opens in ASCII !!
This is definitely NOT WANTED.

My code is this simple:

extern domain tcitem zoom.item

function main()
{
zoom.item = zoom.to$("mtdsls000090041", Z.MENU, prog.name$, "zoom.item", 0)
}
|* End of program.

Can anyone help me on the way to get the 3-GL script to open a menu in the BaaN-GUI?

Thanks !
Hans.

Hitesh Shah
26th March 2004, 12:35
Baan help suggest to use the zoom.to$ function in conjunction with standard program only. And 3GL program does not use the standard program. So it may not get the results desired.


USE
Use this function only in combination with the standard program.


May be manipulating some pre-defined variables dealing with UI (say g.server.data) may give some results. I have never tried that.Please let us know in case u can accomplish the desired result.

hanslokhoff
28th March 2004, 17:25
I'm still in the dark here.

Perhaps I should use certain standard dll's or includes (??)

Anyone having any suggestions?
I'd be gratefull.

Hans.

lbencic
29th March 2004, 17:55
I'm not sure about the problem, but maybe a work around. Why don't you try making it a full GUI / 4GL program instead, attach some type of dummy form, and make all your code happen in the before program or zoom from section? Then exit when done. Not as elequant, you will prob. have a little form stub at least popup somewhere, but same functionality.

Is the parent process originally a GUI program / normal 4gl? Maybe just making that script a library or include is what you want..?

hanslokhoff
29th March 2004, 18:02
Thanks for your reply Lisa,

Seems like we both had the same idea.
I now use:

before.program:
<var> = zoom.to$( ....)
execute(end.program)

Works fine.

Hans.