(Contents)(Previous)(Next)

SetBody(sBody As String)

Description: Sets the body of the conversation
Syntax: object.SetBody(sBody)
Parameters:
object Required, the Conversation object
sBody The string representing the conversation body.
Remarks: This method sets the textual body of the conversation.
Returns: Nothing
Example:
Dim session As Object

Set session = CreateObject("OfficeTalk.Session")

Call session.Logon(login name, password)

Set comps = session.GetCompanies

Set convs = session.GetConversations

Set user = session.FindUserByLoginName("stb")

Call comps.SetFilter("Name", ">=", "sareen")

Set comp = comps.GetFirst

Set conts = comp.GetEmployees

Set cont = conts.GetFirst

Set conv = convs.Add

conv.Value("Name") = "Smoking..."

conv.Value("Date") = Now

conv.SetCompany (comp)

conv.SetUser (user)

conv.SetContact (cont)

conv.SetBody "This is the conversation text"

conv.Update


Next