Iam populating Menu frm Database(Mysql).In the Action event iam getting the Form Name + Appending the "( )" to call perticular form
For Example if the formname is "Wage" iam appending "( )" to get "Wage()" to call that function .Here
iam getting name correctly but Function is not invoked .can some Help me
- Code: Select all Expand view
WHILE ! oRecMenu:BOF() .AND. ! oRecMenu:EOF()
IF oRecMenu:Fields("MenuName"):Value=="Master"
MENUITEM ""+oRecMenu:Fields("MenuName"):Value+""
oRecMenuHierarchy:=LoadMenuHeirarchy(Str( oRecMenu:Fields("menuId"):Value))
MENU POPUP
WHILE ! oRecMenuHierarchy:BOF() .AND. ! oRecMenuHierarchy:EOF()
MENUITEM oMItem1 PROMPT ""+oRecMenuHierarchy:Fields("MenuHierarchy"):Value+"";
Action(oMItem1:oMenu:oLastItem:cPrompt +"(" + ")")//Here iam getting Function name(Wage()) But Function is not
//Invoked
SEPARATOR
oRecMenuHierarchy:MoveNext()
//( oMItem1:oMenu:oLastItem:cPrompt +"(" + ")" )
END do
EndMenu
END IF
..................................
..................................
.................................