IListTextItemsExists Method |
Returns true if the given item exists in the collection
List items
Checks whether there exists a member in the collection at the given index.
Namespace:
SuperOffice.COM.SuperOfficeDB
Assembly:
SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
SyntaxFunction Exists (
Id As Integer
) As Boolean
Dim instance As IListTextItems
Dim Id As Integer
Dim returnValue As Boolean
returnValue = instance.Exists(Id)
bool Exists(
[InAttribute] int Id
)
Parameters
- Id
- Type: SystemInt32
Index into the collection. The first ListTextItem has index 0. Use the Count() method to get the total number of ListTextItem in the collection
Return Value
Type:
BooleanTRUE – if such an ListTextItem exists.
Implements
IMapCollectionExists(Int32)
ExamplesGet history items for the DocTmpl table
This text may be copied to the notepad, and saved as a *.vbs file. You need a running CRM 5 to make it work. (This example uses the SuperOffice COM application library and not the SuperOffice db library interface).
dim i
set objso = CreateObject("superoffice.application")
entablecont = 5
If not (objSO is nothing) Then
set objcl = objso.database.gethistoryitems(130)
if objcl.exists(0) then
msgbox "there are historyitems"
else
msgbox "there are no historyitems in this collection"
end if
else
msgbox "could not log in"
end if
set objso = nothing
See Also