DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

call function threw menu

Hi,
 
I would like to create custom menu , so I use :
 
Call MenuItemAdd(strPanel,menuPos & ".1.1","MenuItem","Test", "call Do_Test()")
 
It doesn't work (Type mismatch error), seems to be an error in the "call Do_Test()", to call my Do_Test function. Any suggestion ? Need to use ScriptStart ??
 
Thank's in advance.
0 Kudos
Message 1 of 2
(3,537 Views)
Hello!
 
Have you registred the script containing Do_Test as a global script extension (via 'ScriptCmdAdd' or the DIAdem Settings)? If not do it or use ScriptStart instead of the simple call.
 
Matthias


Message Edited by Twigeater on 07-18-2008 03:45 PM
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 2
(3,536 Views)