IBM®
Skip to main content
    Country/region select      Terms of use
 
 
   
     Home      Products      Services & solutions      Support & downloads      My account     

developerWorks  >  Lotus  >  Forums & community  >  Best Practice Makes Perfect

Best Practice Makes Perfect

A collaboration with Domino developers about how to do it and how to get it right in Domino

In case it makes a difference for your application, here's how to tell whether you're running in the Notes browser plugin. So far, the only difference that's mattered to me is that the [FileExit] command doesn't work in NBP, causing an error dialog if you try it.

%REM
       Function IsNotesBrowserPlugin

       Description: Return TRUE if we're running in the Notes browser plugin.

%END REM

Function
IsNotesBrowserPlugin As Boolean
       
Dim session As New NotesSession
       
If session.Notesversion >= 400 Then
               
Dim tmp
               tmp =
Evaluate({@IsNotesBrowserPlugin})
               IsNotesBrowserPlugin = tmp(
0) <> 0
       
End If
End
Function

Andre Guirard | 19 March 2013 03:17:15 PM ET | | Comments (1)


 Comments

1) why not just use the LotusScript method?
Howard | 6/26/2013 2:56:12 PM

NotesUIWorkSpace.IsNotesBrowserPlugin will avoid the use of eval.

Howard

 Add a Comment
Subject:
   
Name:
Comment:  (No HTML - Links will be converted if prefixed http://)
 
Remember Me?     Cancel

Search this blog 

Disclaimer 

    About IBM Privacy Contact