4D v13

DatePicker SET WEEK FIRST DAY

Home

 
4D v13
DatePicker SET WEEK FIRST DAY

DatePicker SET WEEK FIRST DAY 


 

DatePicker SET WEEK FIRST DAY ( objectName ; dayNum ) 
Parameter Type   Description
objectName  Text in Name of subform object
dayNum  Longint in Number of first day to display

The DatePicker SET WEEK FIRST DAY command is used to set the first day of the week to display in the left part of a DatePicker calendar. By default, the first day is Monday. 

The objectName parameter 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. 

Pass a 4D constant from the Days and Months theme in the dayNum parameter:

Constant Type Value
Sunday Longint 1
Monday Longint 2
Tuesday Longint 3
Wednesday Longint 4
Thursday Longint 5
Friday Longint 6
Saturday Longint 7

 Setting first day to Sunday:

 DatePicker SET WEEK FIRST DAY("mycalendar";Sunday)

Setting first day to Thursday:

 DatePicker SET WEEK FIRST DAY("mycalendar";Thursday)

 
PROPERTIES 

Product: 4D
Theme: DatePicker

 
INDEX

Alphabetical list of commands

 
HISTORY 

 
SEE ALSO 

DatePicker SET DAYS OFF
DatePicker SET DEFAULT 1ST DAY