PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WX15 - Differences between WB and WD for  MenuAddMenu
WX15 - Differences between WB and WD for MenuAddMenu
Iniciado por guest, 14,oct. 2016 17:07 - No hay respuesta
Publicado el 14,octubre 2016 - 17:07
Hi to all
I try to build a datadriven Menu and I get an error in Webdev while the same routine works perfect in WD.

The errormessage is :

Invalid parameter for 'MenuAddMenu'.
The specified object ('_MainMenu') is a 'Menu control' while the 'Sub-menu' type is expected'.

The used code is:

MenuAddMenu(lcMainMenu, QRY_MenuItems.MenuItemName , QRY_MenuItems.MenuItemCaptionGerman)
where
lcMainMenu(string) = "PageHome._Mainmenu"
QRY_MenuItems.MenuItemName (string) = "MOVIES"
QRY_MenuItems.MenuItemCaptionGerman(string) = "Filme"
Thx for any help
Stephan