sanjay.jain
1st February 2003, 17:07
Hi,
please tell me how to use zoom.to$ for calling a menu from a button. my menu name tdmfd0001m000
I tried but getting No menu file message.......
sanjay
NPRao
1st February 2003, 19:50
Hi Sanjay,
I think you have to prepend the menu code with "m".
dum = zoom.to$( "mtccom00000000", Z.MENU, prog.name$, retfld, formpos )
You are on the BaaN-5C version, so please refer to the note from the tools manual on the usage of the zoom.to$() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_starting_and_stopping_programs_zoom_to)
Note
This function is supported for backward compatibility only. In new applications, use start.session() instead.
If you are using as a button on a form, then you can choose the activate option "menu" from the form commands.
OmeLuuk
3rd February 2003, 10:47
Then put the code in a user.X section where you link the section to a button via the special options in the maintain form session.
RobertB
3rd February 2003, 14:48
Yes, the "exec.user.n" form commands are used a lot... but according to the Tools Help,[These] commands are supported for backward compatibility only. Support is not guaranteed in future versions of the software.So what should we use in future versions?