Quintiq file version 2.0
#parent: lblEndTime
Response OnTextChanged () id:Response_LibPTF_pnlTestController_lblEndTime_OnTextChanged
{
  #keys: '[102890.0.1883930624]'
  Body:
  [*
    // Set the label
    if( lblEndTime.Text() <> 'N/A' )
    {
      end      := LibPTF_pnlTestController.PTF_ConvertStringToDateTime( lblEndTime.Text() );
      start    := LibPTF_pnlTestController.PTF_ConvertStringToDateTime( lblStartTime.Text() );
      duration := guard( end - start, Duration::Zero() );
      lblDurationTime.Text( [String]duration );
    }
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_Label_OnTextChanged'
}
