Dim db As NotesDatabase
Set db = New NotesDatabase( "Barcelona", "plan.nsf" )
Messagebox( db.Title )
Dim db As New NotesDatabase( "Barcelona", "plan.nsf" )
Messagebox( db.Title )
Dim db As New NotesDatabase( "", "quack.nsf" )
If db.IsOpen Then
Messagebox( "The database quack.nsf already exists." )
Else
Messagebox( "Creating the database quack.nsf...")
Call db.Create( "", "", True )
db.Title = "Ducks of North America"
End If
このスクリプトをクライアントで実行すると、ローカルコンピュータの CLUNK.NSF データベースが起動します。
このスクリプトをサーバー Khartoum で実行すると、Khartoum の CLUNK.NSF データベースが起動します。
Dim db As New NotesDatabase _
( "", "senses¥sounds¥clunk.nsf" )
Macintosh で CLUNK.NSF が Senses フォルダ内の Sounds フォルダに存在する場合、スクリプトは次のようになります。
Dim db As New NotesDatabase _
( "", "senses:sounds:clunk.nsf" )
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
Call db.GrantAccess( "Brian Flokka", ACLLEVEL_EDITOR )
Dim db As New NotesDatabase( "", "" )
If db.Open( "Asuncion", "salesdocs.nsf" ) Then
Call db.GrantAccess( "Supervisors", ACLLEVEL_EDITOR )
End If
Dim db As New NotesDatabase( "", "" )
Dim dateTime As New NotesDateTime( "Today" )
Call dateTime.AdjustDay( -1 )
If db.OpenIfModified( "", "salesdocs.nsf", dateTime ) Then
Call db.Compact
End If
Dim template As New NotesDatabase _
( "Anchorage", "discuss.ntf" )
Dim brandNewDb As NotesDatabase
Set brandNewDb = template.CreateFromTemplate _
( "Juno", "suggest.nsf", True )
brandNewDb.Title = "Suggestions for Giving Campaign 1996"