Results 1 to 5 of 5

Thread: isMenuLoaded ??

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Question

    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
    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    What I need is the code for the "MenuLoaded" function

    What I need is the code for the "MenuLoaded" function
    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  5. #5
    Guest
    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
  •  



Click Here to Expand Forum to Full Width