PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Properties specific to the description of ogiRepetiton variables
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
Warning
From version 17, this type of variable is kept for backward compatibility. This type of variable is replaced by Repetition, which makes it possible to manage repeated appointments in an Organizer control as well as repeated appointments in a Scheduler control.
The ogiRepetition type is used to describe and modify the characteristics for repeating an appointment via several WLanguage properties. Then, the appointment will be displayed into an Organizer control.
This type of variable is used by the ogiAppointment type.
Note: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
Example
// Defines an appointment for the morning
MyAppointment is ogiAppointment
MyAppointment..StartDate = DateSys() + "090000"
MyAppointment..EndDate = DateSys() + "093000"
MyAppointment..Title = "Appointment with the development team"
MyAppointment..Guest = "Jack, Mark, Sandra"
MyAppointment..Content = "Daily meeting regarding the progress of the projects."
MyAppointment..WithRepetition = True

// Configures a daily repetition of the appointment
RepetitionParameter is ogiRepetition
RepetitionParameter..Type = orgEveryDay
RepetitionParameter..TypeEnd = orgNoEnd
MyAppointment..Repetition = RepetitionParameter

OrganizerAddAppointment(ORG_Organizer1, MyAppointment)
Remarks

Properties specific to the description of ogiRepetiton variables

The following properties can be used to handle a ogiRepetition variable:

Property nameType usedEffect
EndDateCharacter stringEnd date of the repetition. This property is used if ..TypeEnd is equal to the orgEndDate constant.
HourCharacter stringTime of the repetition in UTC format (universal time). The possible values are:
  • a digit included between 0 and 23.
  • a list of numbers separated by commas in order to specify several hours.
  • an interval. For example, "9-13".
  • a star ("*") to specify the entire range.
  • an interval with a step. For example, "*/2" to repeat the appointment every even hour.
DayOfWeekCharacter stringNumber of the day for which the appointment is scheduled ("2" for example). This number is included between 1 and 7 (1 = Monday, 2 = Tuesday, ...).
This property can also correspond to:
  • a list of numbers separated by commas in order to specify several days.
  • an interval. For example, "1-3" (the appointment is repeated on Monday, Tuesday and Wednesday).
  • a star ("*") to specify the entire range.
  • an interval with a step. For example, "*/2" to repeat the appointment every even day of the week.
  • the day of the week in letters ("monday", "tuesday", "wednesday", "thursday", "friday").
DayOfMonthCharacter stringNumber of the day for which the appointment is scheduled ("31" for example). This number is included between 0 and 31.
This property can also correspond to:
  • a list of numbers separated by commas in order to specify several months.
  • an interval. For example, "9-13" (the appointment is repeated from the 9th to the 13th of the month).
  • a star ("*") to specify the entire range.
  • an interval with a step. For example, "*/2" to repeat the appointment every even day of the month.
DayOfMonthOrDayOfWeekBoolean
  • True repeat the appointment every Monday AND the first day of the month (cumulated conditions).
  • False to repeat the appointment on Monday 1st (exclusive conditions).
MinuteCharacter stringMinutes of the time for the appointment repetition. The possible values are:
  • a digit included between 0 and 59.
  • a list of numbers separated by commas in order to specify several minutes.
  • an interval. For example, "9-13".
  • a star ("*") to specify the entire range.
  • an interval with a step. For example, "*/2" to repeat the appointment every even minute.
MonthCharacter stringNumber of the month for the appointment repetition. The possible values are:
  • a digit included between 1 and 12.
  • a list of numbers separated by commas in order to specify several months.
  • an interval. For example, "9-11".
  • a star ("*") to specify the entire range.
  • an interval with a step. For example, "*/2" to repeat the appointment every even month.
NbOccurrenceIntegerMaximum number of repetitions. This property is taken into account when ..TypeEnd is equal to the orgMaxOccurrence constant.
TypeInteger constantType of repetition.
This property corresponds to one of the following constants:
  • orgEveryDay: the appointment will be repeated every day at the same time.
  • orgEveryWeek: the appointment will be repeated every week, on the same day and at the same time.
  • orgEveryMonth: the appointment will be repeated every month, on the same day and at the same time.
  • orgEveryYear: the appointment will be repeated every year, on the same day and at the same time.
TypeEndInteger constantCondition for stopping the repetition.
This property corresponds to one of the following constants:
  • orgEndDate: the appointment will no longer be repeated from the date specified in ..EndDate.
  • orgMaxOccurrence: the appointment will no longer be repeated after the number of repetitions specified in ..NbOccurrence.
  • orgNoEnd: the appointment will be repeated endlessly.
Note: These properties can be handled by using one of the following syntaxes:
  • <Variable name>..<Property name>
  • <Variable name>.<Property name>
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment