SetAbsolutStartEndDate

Parent Previous Next

SetAbsolutStartEndDate

This function sets the Absolute Start and End Date of the Alarm Object. This function has four ways to be used:


Function Definition:


void SetAbsolutStartEndDate(DateTime startDate, DateTime endDate);


void SetAbsolutStartEndDate(string startDate, string endDate);


void SetAbsolutStartEndDate(DateTime startDate, string endDate);


void SetAbsolutStartEndDate(string startDate, DateTime endDate);


.     DateTime startDate: A DateTime parameter that Represents the date that will be the start date.

.     DateTime endDate: A DateTime parameter that Represents the date that will be the end date.

.     String startDate: A string parameter that Represents the date that will be the start date.

.     String endDate: A string parameter that Represents the date that will be the end date.



To configure this property, follow the steps below:


1.   In an object event, configure the SetAbsolutStartEndDate function: AlarmObjectName.SetAbsolutStartEndDate(startDate, endDate);


2.   During the execution of RunTime, run the configured event.



Example with SetAbsolutStartEndDate(DateTime startDate, DateTime endDate):


In the graphic document, the user has one Alarm object (named as Alarm1). In a Button object (named as Button1) the user configures the MouseUp event with the following event:


Alarm1.SetAbsolutStartEndDate(@startDate, @endDate);


In this event, the Absolute Start and End Date will be set.



 

Note: This property exists only to the following objects:

.    Alarm