ISProfile.CreateList

Description

This function creates a new list.

Syntax

object.CreateList()

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

Return Value

ISList

Returns the objects from the list.

Example

Fill the list by the user-selected patients and display the number of patients in the list and their full names.

Dim aList
Dim aPatient
Dim aMessage

Set aList = Profile.CreateList

const aPatientCount = 2
for i = 1 to aPatientCount 
  set aPatient = Profile.SelectPatient
  aList.Add(aPatient)
next

aMessage = "The number of patients in the list is " &  aList.Count
for i = 0 to aList.Count - 1 
  set aPatient = aList.Item(i)
  aMessage = aMessage & vbNewLine & " - " & aPatient.SurnameFirstName
next

Profile.MsgBox(aMessage)
Note:

Version information

Added in v7.8.0