Dim vw As NotesView Dim ec As NotesViewEntryCollection Dim entry As NotesViewEntry Dim keys$( 0 ) Dim tmp As Variant Set db = ss.Currentdatabase Set vw = db.Getview( "byTitle“ ) vw.Refresh vw.Autoupdate = False keys( 0 ) = " 果物#1“ Set ec = vw. getAllEntriesByKey( keys, True ) Set entry = ec.Getfirstentry() While Not entry Is Nothing tmp = entry.Columnvalues( 1 ) If IsArray( tmp ) Then Print Join( tmp, “,” ) Else Print tmp End If Set entry = ec.Getnextentry( entry ) Wend ビューエントリの 集合 一致する全ての エントリを取得 エントリから2列 目の値を出力 結果 いちご いちご びわ バナナ バナナ
Dim vw As NotesView Dim ec As NotesViewEntryCollection Dim entry As NotesViewEntry Dim keys$( 0 ) Dim tmp As Variant Set db = ss.Currentdatabase Set vw = db.Getview( "byTitle“ ) vw.Refresh vw.Autoupdate = False keys( 0 ) = " 果物#1“ Set ec = vw. getAllEntriesByKey( keys, True ) Set entry = ec.Getfirstentry() While Not entry Is Nothing tmp = entry.Columnvalues( 1 ) If IsArray( tmp ) Then Print Join( tmp, “,” ) Else Print tmp End If Set entry = ec.Getnextentry( entry ) Wend 結果 いちご いちご びわ バナナ バナナ
New NotesSession Dim db As NotesDatabase Dim vw As NotesView Dim nav As NotesViewNavigator Dim entry As NotesViewEntry Dim keys$( 0 ) Dim tmp As Variant Set db = ss.Currentdatabase Set vw = db.Getview( "byTitle“ ) vw.Refresh vw.Autoupdate = False keys( 0 ) = " 果物#1" Set nav = vw. createViewNavFromkey( keys, True ) Set entry = nav.Getfirst() While Not entry Is Nothing tmp = entry.Columnvalues( 1 ) If IsArray( tmp ) Then Print Join( tmp, “,” ) Else Print tmp End If Set entry = nav.Getnext( entry ) Wend ビューエントリの 位置 位置を決める エントリから2列 目の値を出力
Dim vw As NotesView Dim ec As NotesViewEntryCollection Dim entry As NotesViewEntry Dim keys$( 0 ) Set db = ss.Currentdatabase Set vw = db.Getview( "byCategory“ ) vw.Refresh vw.Autoupdate = False keys( 0 ) = " バナナ“ Set ec = vw. getAllEntriesByKey( keys, True ) Set entry = ec.Getfirstentry() While Not entry Is Nothing Print entry.Columnvalues( 1 ) Set entry = ec.Getnextentry( entry ) Wend 結果 果物#1 果物#2 果物#3
Dim vw As NotesView Dim nav As NotesViewNavigator Dim entry As NotesViewEntry Dim keys$( 0 ) Set db = ss.Currentdatabase Set vw = db.Getview( "byCategory“ ) vw.Refresh vw.Autoupdate = False keys( 0 ) = " バナナ" Set nav = vw. createViewNavFromKey( keys, True ) Set entry = nav.Getfirst() While Not entry Is Nothing Print entry.Columnvalues( 1 ) Set entry = nav.Getnext( entry ) Wend 結果 果物#1 果物#2 果物#3 果物#1 果物#1
Dim vw As NotesView Dim nav As NotesViewNavigator Dim entry As NotesViewEntry Dim keys$( 0 ) Set db = ss.Currentdatabase Set vw = db.Getview( "byCategory“ ) vw.Refresh vw.Autoupdate = False keys( 0 ) = " バナナ" Set nav = vw. createViewNavFromKey( keys, True ) Set entry = nav.Getfirst() While Not entry Is Nothing Print entry.Columnvalues( 1 ) Set entry = nav.Getnext( entry ) Wend 結果 果物#1 果物#2 果物#3 果物#1 果物#1