This function checks whether the message was created and sent by Profile.
object.IsCreatedInternally()
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISMessage interface |
bool
Display True if the message is created by Profile.
Dim aProvider
Dim aParams
Dim aMessages
Dim aMessage
Dim aInfo
Set aProvider = Profile.LoadProvider("ADMIN")
set aParams = Profile.CreateLoadMessagesParams(aProvider.Id)
aParams.ProviderId = aProvider.Id
aParams.SentAfter = #12/09/2010#
set aMessages = Profile.LoadMessages(aParams)
aInfo = "Messages Count = " & aMessages.Count
for i = 0 to aMessages.Count - 1
set aMessage = aMessages.Item(i)
aInfo = aInfo & vbNewLine & "Is the message created internally: " & aMessage.IsCreatedInternally
next
Profile.MsgBox(aInfo)
In Profile Client v8 on User Interface Sender can be found in
.