
This method will set the lowest and highest allowable dates.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_Month_SetRange MyControlReference [as Reference] (list LowestDateYear [as Integer] LowestDateMonth [as Integer] LowestDateDay [as Integer]) (list HighestDateYear [as Integer] HighestDateMonth [as Integer] HighestDateDay [as Integer])) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_Month_SetRange ProjectFile [as String] DialogName [as String] ControlName [as String] (list LowestDateYear [as Integer] LowestDateMonth [as Integer] LowestDateDay [as Integer]) (list HighestDateYear [as Integer] HighestDateMonth [as Integer] HighestDateDay [as Integer])) |
Copy Code |
|---|
; Set the allowable range (Odcl_Month_SetRange MyProject_MyForm_MyControl (list 2009 01 01) (list 2009 12 31)) |