In a message regarding Dim On-the-Fly dated Mon, 6 Feb 2006 14:11:20 -0700,
Chuck Pelto said that ...
> How would one go about doing a dim statement on the fly in an
> application?
> Situation: Building multiple menu items in a contextual menu and
> multiple submenu items to go with said menu items, when the number of
> menu items with submenus is variable.
Oversimplified example:
for i as integer = 1 to 10
dim submenu as new MenuItem("SubMenu"+cstr(i))
MenuBar1.Child("FileMenu").append Submenu
next i
--
Steve Garman
Using REALbasic 2006r1 Professional on Windows XP Pro
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>