TsTimwPicker does not work if cleared in code

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #61332
    HeDiBo
    Participant

      The following code will solve the problem:

            s := Text;
      {$ENDIF}
            if s = '' then begin      (*** DB ***)
               Value := 0;            (*** DB ***)
               s := Text;             (*** DB ***)
            end{if};                  (*** DB ***)
            case FPos of
      

      The spin buttons still don’t do anything, but that’s probably OK.

      #61394
      sergunalpha
      Keymaster

        Thank you, I will check it.

        #61456
        HeDiBo
        Participant

          After reconsideration, to support TNTUNICODE, the best fix may be:

              if Result then begin
                if Text = '' then Value := 0;   (*** DB ***: initialize text to 00:00:00 *)
          {$IFDEF TNTUNICODE}
                c := PWideChar(Text);
          • This reply was modified 6 years, 5 months ago by HeDiBo.
          #61549
          Support
          Keymaster

            Thank you, I will add it in the nearest release.

            #68203
            HeDiBo
            Participant

              Problem fixed. Close this topic, please.

            Viewing 5 posts - 1 through 5 (of 5 total)
            • The topic ‘TsTimwPicker does not work if cleared in code’ is closed to new replies.