4D v16

DatePicker SET MAX DATE

Home

 
4D v16
DatePicker SET MAX DATE

DatePicker SET MAX DATE 


 

DatePicker SET MAX DATE ( objectName ; maxDate ) 
Parameter Type   Description
objectName  Text in Name of subform object
maxDate  Date in Upper limit of enterable date

The DatePicker SET MAX DATE command is used to specify the maximum enterable date in the DatePicker calendar (the days located after this maximum date appear grayed out in the calendar). 

The objectName specifies the instance of the subform to which the command must be applied. In this parameter, you must pass the name of a subform object displayed in the current form. 

The maxDate date must be expressed in the default entry format corresponding to the system language. If you pass a blank date (!00/00/00!), all the dates that follow the current date are enterable. 

If the maximum enterable date is earlier than the minimum enterable date (see DatePicker SET MIN DATE), no date will be enterable.

Example  

Disabling all dates after December 31, 2009 in the object named "ReturnDate":

 DatePicker SET MAX DATE("ReturnDate";!12/31/2009!)



See also 

DatePicker SET DEFAULT MAX DATE
DatePicker SET MIN DATE

 
PROPERTIES 

Product: 4D
Theme: DatePicker

 
HISTORY 

 
ARTICLE USAGE

4D Widgets ( 4D v16)