LOTUSSCRIPT/COM/OLE CLASSES
Examples: ItemName property
1. This script gets the programmatic name of the first column of the By Category view in the database YAHOO.NSF. For example, if the first column displays the value of the Categories field and the view designer does not change the programmatic name, the ItemName property returns "Categories."
Sub Initialize
Dim db As New NotesDatabase( "", "yahoo.nsf" )
Dim view As NotesView
Dim column As NotesViewColumn
Dim item As String
Set view = db.GetView( "By Category" )
Set column = view.Columns( 0 )
item = column.ItemName
End Sub
2. This script gets the name of the programmatic name of the second column of the By Category view in the database .YAHOO.NSF For example, if the second column displays the value of a simple function or a formula and the view designer does not change the programmatic name, the ItemName property might return "$1." If the view designer changes the name to "Column 2," the ItemName property returns "Column 2."
Sub Initialize
Dim db As New NotesDatabase( "", "yahoo.nsf" )
Dim view As NotesView
Dim column As NotesViewColumn
Dim item As String
Set view = db.GetView( "By Category" )
Set column = view.Columns( 1 )
item = column.ItemName
End Sub
Siehe auch
ItemName property
Glossar
Ihre Kommentare zur
Hilfe
oder zur
Verwendbarkeit der Software
?
Hilfe zur Hilfe
Inhalt der gesamten Hilfe
Glossar