EmEditor (text editor) Forum Index Questions and Answers about Macros
Error On popupmenu.GetText(-1) | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| LTT | Posted on: 2/22/2012 2:55 am |
Just can't stay away ![]() ![]() Joined: 10/11/2006 From: Posts: 84 |
Error On popupmenu.GetText(-1) [VBScript]
id can be a negative integer. But in: "Unspecified error" occured if id = -1. Is this normal? |
| Stefan | Posted on: 2/22/2012 3:11 am |
Home away from home ![]() ![]() Joined: 7/14/2008 From: Germany, EU Posts: 261 |
Re: Error On popupmenu.GetText(-1) Hi LTT,
why can you get negative numbers? I think you self add this numbers to your menu and take care to use positive nbr only? Here is my PopUp menu example (click) And in your code you can check for negative nbr and just "break;" OTOH: MyMenu.Add("Execute Function &one",-1); gives me no error on EmEditor 11.0.3, portable, XP SP3 It just do nothing, or, if the case-label exists, it works with "-1" too. EDIT: Ah, now i see... alert( MyMenu.GetText( -1 ) ); did not work for me too. Unknown error. alert( MyMenu.GetText( 2 ) ); works. |
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |




