|
-
Jun 22nd, 2000, 10:30 AM
#1
Thread Starter
Addicted Member
Hi,
How can I write a function that tells if a Menu Item Is Already Loaded.
Example
Code:
IF MenuLoaded(mnuOptions(2)) = True Then
Msgbox "Menu Already Loaded"
Else
Load mnuOptions(2)
End IF
-
Jun 22nd, 2000, 11:26 AM
#2
transcendental analytic
IF not MenuLoaded(mnuOptions(2)) Is nothing then
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jun 22nd, 2000, 12:22 PM
#3
Thread Starter
Addicted Member
What I need is the code for the "MenuLoaded" function
What I need is the code for the "MenuLoaded" function
-
Jun 22nd, 2000, 08:44 PM
#4
transcendental analytic
I wouldn't recommend implementing functions for everything, at least not if you can do it with an operator:
Function Menuloaded(obj as object) as boolean
Menuloaded=not obj is nothing
End function
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jun 23rd, 2000, 03:29 AM
#5
If you want to load a menu to the next free one, just load it from the Controls Count property.
Code:
iCount = mnuMenu.Count
Load mnuMenu(iCount)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|