/ Forums / Advansys Formativ / Creating Solutions with Formativ / How to use the Time-Control without Seconds

  • Creator
    Topic
  • #3902
    rfaude
    Participant

    Is it possible to use the time-control without displaying the seconds?

    Thanks.

    Ralf


    %



    Set DateTime2 = Dlg.AddDateTimeControl
    with DateTime2
    .Kind = fdtkTime
    .Time = “00:00:00”
    .Hint = “hh:mm:ss”
    .Caption = “Dauer”
    .Width = 100
    .Left = 250
    .Spacing = afvManual
    .CaptionPosition = afvLeft
    .CaptionWidth = iCaptWidth
    .CaptionAlign = ftaRightJustify
    end with

  • Author
    Replies
  • #6567
    Support 1a
    Participant

    The DateTimeControl formats date and time values according to the date and time settings in the Regional Settings of the Control panel on the user’s system. Because the DateTimeControl is a wrapper for a Windows control, these formats can’t be changed by changing formatting variables. Therefore, the only way to remove the seconds would be to change the time formatting string in the Windows Control Panel.

    I hope this helps.

    Advansys Support

    #6566
    rfaude
    Participant

    Thanks. The way you described works fine.

    Ralf

    #6568
    Support 1a
    Participant

    Great – thanks for the update.

    Advansys Support

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.