Welcome! Log In Create A New Profile

Advanced

[WD24] What is the correct syntax for MenuExist()

Posted by Al 
Al
[WD24] What is the correct syntax for MenuExist()
August 26, 2019 01:43PM
Hello

I can't get the syntax correct for MenuExist()

The help example is quite misleading as it includes an ID but makes no mention of it
IF MenuExist(MyMenu, "OpenCustomer" + ID) = False THEN

I have tried all possible combinations with and without quotes but nothing seems to give me a return value of true when I use the function.

Regards
Al
Hi Al,

Maybe I'am not fully understand your problem but I had also had some issues with MenuExist.
I wanted to know if a menu exists.

To check if a menu exists you have to add '.Menu' in the first parameter..


IF MenuExist("MainWIN._Menu",lds_Menu.MenuItem) THEN
{"MainWIN."+lds_Menu.MenuItemindControl}..Visible=lds_Menu.ShowMenuOption
END
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: