I want to add a menu of items in a table. I can put the items in an array.
What I need is a contrete example of how to add to a menu while the application in my start up program. If the user supplies a valid userid and password then code like the following is executed
RELEASE goApp
PUBLIC goApp
goApp = CREATEOBJECT("cApplication")
appcaption = 'FTMS System, Visual Foxpro ' ;
+ LEFT(TRANSFORM(VERSION(4),'99.99'),18)
goApp.SetCaption(appcaption)
goApp.cStartupMenu=(gcDefDir)+"menus\menuftp"+ALLTRIM(STR(m.gnUserLev))
goApp.cStartupForm=""
goApp.Show
RELEASE goApp
The new menu should be created by a program TRANSDEF.PRG. In the above code where whould it be put to add the menu items. In it a put the name of the menus from a table into an array. After that what commands to I use and what order. A concrete example would be helpful.