Click or drag to resize

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
Syntax
bool Exists(
	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: Boolean
TRUE – if such an ListTextItem exists.

Implements

IMapCollectionExists(Int32)
Examples

Get 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).

VB
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