Returns true if the given item exists in the collection
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 IInterests
Dim Id As Integer
Dim returnValue As Boolean
returnValue = instance.Exists(Id)
bool Exists(
[InAttribute] int Id
)
Parameters
- Id
- Type: SystemInt32
<p>Index into the collection. The first interest has index 1. Use the Count() method to get the total number of interests in the collection</p>
<p>Note - the id here is a virtual id, not the persint.persint<em>id or contint.contint</em>id.</p>
Return Value
Type:
BooleanBoolean - True if such an interest exists
Implements
IMapCollectionExists(Int32)
ExamplesExists
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
Dim objSO
Dim contact
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
if objSO.CurrentContact.Interests.Exists (1) then
MsgBox "The current contact has registered one or more active Company Interests�
else
MsgBox �The current contact has no active Company Interests registered�
end if
else
MsgBox "Unable to connect to database"
end if
Set objSO = Nothing
See Also