ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The Num1stDayOfTheWeek property gets and sets the 1st day of the week displayed in:
  • a Calendar control.
  • WINDEVWEBDEV - Server codeAndroidiPhone/iPadIOS WidgetPHP an Organizer control.
  • WINDEVWEBDEV - Server codeAndroidiPhone/iPadIOS WidgetPHP a Scheduler control.
  • WINDEV an Edit control in Date format with Calendar.
Remark: The first day of the week can also be set in the field description window ("Detail" tab)..
Example
WINDEVWEBDEV - Server codeAndroidiPhone/iPadIOS WidgetPHP
IF Nation() = nationArabic THEN
	AGD_Agenda1.Num1erJourDeLaSemaine = 6 // Samedi
ELSE
	AGD_Agenda1.Num1erJourDeLaSemaine = 1 // Lundi
END
Syntax

Getting the first day of the week Hide the details

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

Changing the first day of the week Hide the details

<Control used>.Num1stDayOfTheWeek = <New first day>
<Control used>: Control name
Name of the control used:
  • WINDEVWEBDEV - Server codeAndroidiPhone/iPadIOS WidgetPHP Organizer control.
  • Calendar control.
  • WINDEVWEBDEV - Server codeAndroidiPhone/iPadIOS WidgetPHP 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 version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help