Share this page

# Example: Entering a Module

You can determine whether the user can enter or switch to an ALM module.

Add the following code to the `CanEnterModule` event procedure, which is triggered before the user enters or switches to an ALM module.

    Function CanEnterModule(ModuleName)
      On Error Resume Next
      result = MsgBox("Do you want to enter "+ModuleName+"?", vbYesNo)
      Select case result
         case vbNo
             CanEnterModule = false
         case vbYes
             CanEnterModule = DefaultRes
      End Select
      On Error GoTo 0
    End Function

https://admhelp.microfocus.com ALM 8942
Tips to improve your search results... ALM Help Center ALM Help Center ALM Help 16.00-16.0.1 All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: