ISQuestion.Title

Description

The title of the question.

Syntax

object.Title

Part Attribute Type Description
object Required
The object always implements the ISQuestion interface

Return Value

string

Example

Display the number of questions and some information about them, including their titles.

Dim aPatient
Dim aQuestions, aQuestions
Dim aMessage
Dim i

Set aQuestions = Profile.ProfileInternal.LoadQuestionsForPatient(3)
aMessage = "Questions Count = " & aQuestions.Count
for i = 0 to aQuestions.Count - 1
  set aQuestion = aQuestions.Item(i)
  aMessage = aMessage & vbNewLine &_
    "Title: " & aQuestion.Title & vbNewLine &_
    "Amend Date: " & aQuestion.AmendDate & vbNewLine &_
    "Amend Number: " & aQuestion.AmendNumber & vbNewLine &_
    "Answer: " & aQuestion.Answer & vbNewLine &_
    "Body: " & aQuestion.Body & vbNewLine &_
    "Date: " & aQuestion.Date & vbNewLine   
next
Profile.MsgBox(aMessage)
Note:

In Profile Client v8 on User Interface Title can be found in Organisation > Work Centre > Work > Patient Items > Question Properties > Title.

Version information

Added in v7.8.0