property Items.DefSchedulePDM(Option as DefSchedulePDMEnum) as Variant
Retrieves or sets an option for SchedulePDM method.

TypeDescription
Option as DefSchedulePDMEnum A DefSchedulePDMEnum expression that indicates the option to be changed.
Variant A Variant expression that indicates the value of the SchedulePDM's option to be changed.
The Def SchedulePDM property defines options to be used by the SchedulePDM method. If required any option to be used the DefSchedulePDM should be called before the SchedulePDM method else it will have no effect. For instance, use the Def SchedulePDM property to specify a start date for the project, so the SchedulePDM method will use it, to arrange all bars so no bars will start before the specified date. The same if you require to specify the end of the project.

For instance the following sample specifies the start of the project to be 1/8/2001, 

With G2antt1
	With .Items
		.DefSchedulePDM(exPDMScheduleType) = 1
		.DefSchedulePDM(exPDMScheduleDate) = #1/8/2001#
		.SchedulePDM 0,"K1"
	End With
End With

and the following sample specifies the end of the project to be 1/8/2001

With G2antt1
	With .Items
		.DefSchedulePDM(exPDMScheduleType) = 2
		.DefSchedulePDM(exPDMScheduleDate) = #1/8/2001#
		.SchedulePDM 0,"K1"
	End With
End With