PL-100 · Question #280
You are developing a canvas app to monitor time. The app includes a Text Input control named TIC1 and a Timer control named TIM1. You need to set TIM1 to a default value. What should you do?
The correct answer is D. Assign the Text property of TIC1 to the Duration property of TIM1. To set the default value for a Timer control (TIM1) based on a Text Input control (TIC1), assign the Text property of TIC1 to the Duration property of TIM1.
Question
Options
- AAssign the Text property of TIC1 to the OnSelect property of a TIM1.
- BAssign the Text property of TIC1 to the OnTimerStart property of the TIM1.
- CSet the Text property of TIC1 to the current system time.
- DAssign the Text property of TIC1 to the Duration property of TIM1.
How the community answered
(22 responses)- B5% (1)
- C5% (1)
- D91% (20)
Why each option
To set the default value for a Timer control (TIM1) based on a Text Input control (TIC1), assign the Text property of TIC1 to the Duration property of TIM1.
The `OnSelect` property is an event that triggers when a control is selected, not a property to set a default duration for a timer.
The `OnTimerStart` property is an event that triggers when the timer begins its countdown, not a property to define its duration.
Setting the `Text` property of TIC1 only changes the content of the text input box itself, not the duration of the timer control.
The `Duration` property of a Timer control determines its length in milliseconds. By assigning `TIC1.Text` (which should contain a numeric value representing milliseconds) to `TIM1.Duration`, you set the timer's default value based on the input.
Concept tested: Canvas app Timer control properties
Source: https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/control-timer
Topics
Community Discussion
No community discussion yet for this question.