nerdexam
Microsoft

PL-100 · Question #61

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 B. Assign the Text property of TIC1 to the Duration property of TIM1. To set TIM1 (a Timer control) to a default value based on TIC1 (a Text Input control), you assign the Text property of TIC1 to the Duration property of TIM1. The Duration property of a Timer control defines how long it runs (in milliseconds). By binding it to TIC1.Text…

Create business solutions

Question

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?

Options

  • AIn the OnChange property of TIC1, set the value of the Text property for TIC1 to a context
  • BAssign the Text property of TIC1 to the Duration property of TIM1.
  • CAssign the Text property of TIC1 to the OnSelect property of a TIM1.
  • DWrite code in the OnChange property of TIC1 that assigns the value of the Duration property of

How the community answered

(16 responses)
  • B
    81% (13)
  • C
    13% (2)
  • D
    6% (1)

Explanation

To set TIM1 (a Timer control) to a default value based on TIC1 (a Text Input control), you assign the Text property of TIC1 to the Duration property of TIM1. The Duration property of a Timer control defines how long it runs (in milliseconds). By binding it to TIC1.Text, whatever the user types into the text input directly drives the timer's duration. The other options are incorrect: OnChange with context variables doesn't bind the Duration properly; OnSelect is an event property, not a value property; and writing code in OnChange to assign Duration would not work because Duration is a formula-bound property, not one you set imperatively.

Topics

#Power Apps#Canvas Apps#Timer Control#Property Assignment

Community Discussion

No community discussion yet for this question.

Full PL-100 Practice