PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

X
Y
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..Num1stDayOfTheWeek is used to find out and modify the 1st day of the week displayed in:
  • a Calendar control.
  • WINDEVWEBDEV - Server codePHP an Organizer control. WINDEVWEBDEV - Server codeAndroidiPhone/iPadPHP an Organizer control.
  • WINDEVWEBDEV - Server codeAndroidiPhone/iPadPHP a Scheduler control.
  • WINDEV an edit control in Date format with Calendar.
Note: The first day of the week can also be configured in the description window of the control ("Details" tab).
Versions 18 and later
iPhone/iPad This property is now available for the iPhone/iPad applications.
WINDEVLinux This property is now available for the WINDEV applications in Linux.
WEBDEV - Server code This property is now available for the WEBDEV sites (Windows and Linux).
WEBDEV - Server codePHP This property is now available for the PHP sites.
New in version 18
iPhone/iPad This property is now available for the iPhone/iPad applications.
WINDEVLinux This property is now available for the WINDEV applications in Linux.
WEBDEV - Server code This property is now available for the WEBDEV sites (Windows and Linux).
WEBDEV - Server codePHP This property is now available for the PHP sites.
iPhone/iPad This property is now available for the iPhone/iPad applications.
WINDEVLinux This property is now available for the WINDEV applications in Linux.
WEBDEV - Server code This property is now available for the WEBDEV sites (Windows and Linux).
WEBDEV - Server codePHP This property is now available for the PHP sites.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Versions 24 and later
Android This property is now available on Organizer controls in Android applications.
iPhone/iPad This property is now available on Organizer controls in iPhone/iPad applications.
New in version 24
Android This property is now available on Organizer controls in Android applications.
iPhone/iPad This property is now available on Organizer controls in iPhone/iPad applications.
Android This property is now available on Organizer controls in Android applications.
iPhone/iPad This property is now available on Organizer controls in iPhone/iPad applications.
Example
WINDEVWEBDEV - Server codePHP
IF Nation() = nationArabic THEN
        ORG_Organizer1..Num1stDayOfTheWeek = 6 // Saturday
ELSE
        ORG_Organizer1..Num1stDayOfTheWeek = 1 // Monday
END
WINDEVWEBDEV - Server codeAndroidiPhone/iPadPHP
IF Nation() = nationArabic THEN
        ORG_Organizer1..Num1stDayOfTheWeek = 6 // Saturday
ELSE
        ORG_Organizer1..Num1stDayOfTheWeek = 1 // Monday
END
Syntax

Finding out the first day of the week Hide the details

<Result> = <Control>..Num1stDayOfTheWeek
<Result>: Integer
First day of the week considered for the specified control. The days of the week are handled via the following identifiers:
0 - Sunday
1 - Monday
2 - Tuesday
3 - Wednesday
4 - Thursday
5 - Friday
6 - Saturday
<Control>: Control name
Name of control used:
  • WINDEVWEBDEV - Server codePHP Organizer control. WINDEVWEBDEV - Server codeAndroidiPhone/iPadPHP Organizer control.
  • Calendar control.
  • WINDEVWEBDEV - Server codeAndroidiPhone/iPadPHP Scheduler control.
  • WINDEV Edit control in Date format with Calendar.

Modifying the first day of the week Hide the details

<Control>..Num1stDayOfTheWeek = <New First Day>
<Control>: Control name
Name of control used:
  • WINDEVWEBDEV - Server codePHP Organizer control. WINDEVWEBDEV - Server codeAndroidiPhone/iPadPHP Organizer control.
  • Calendar control.
  • WINDEVWEBDEV - Server codeAndroidiPhone/iPadPHP Scheduler control.
  • WINDEV Edit control in Date format with Calendar.
<New First Day>: Integer
Identifier of the day to use as first day of the week. The identifiers of the days of the week are as follows:
0 - Sunday
1 - Monday
2 - Tuesday
3 - Wednesday
4 - Thursday
5 - Friday
6 - Saturday
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment