ISAppointment.IsNew

Description

Returns True if the appointment is being created and has not been saved in the database yet.

Syntax

object.IsNew

Part Attribute Type Description
object Required
The object always implements the ISAppointment interface
Restriction: This property is readonly.

Return Value

bool

Example

Display "The appointment is not saved, so True" if the appointment is being created and has not been saved yet. Otherwise, display "The appointment is already saved, so False".

Dim aAppointment
Dim aIsNew
Dim aPatient

Set aPatient = Profile.SelectPatient
set aAppointment = Profile.CreateAppointment

aIsNew = aAppointment.IsNew

Profile.MsgBox ("The appointment is not saved, so " & aIsNew)

aAppointment.Save
aIsNew = aAppointment.IsNew

Profile.MsgBox ("The appointment is already saved, so " & aIsNew)  
Note:

In Profile Client v8 on User Interface cannot be found.

Version information

Added in v7.8.0