Recent

Author Topic: Return the Min and Max value from an ARRAY of TDateTime  (Read 860 times)

Odacir

  • New Member
  • *
  • Posts: 41
Return the Min and Max value from an ARRAY of TDateTime
« on: February 18, 2020, 06:36:33 pm »
Hello,

I'm trying return the max and min value from an array of TDateTime values.

Only find samples for integers value :(

Anyone can help?

Bart

  • Hero Member
  • *****
  • Posts: 5274
    • Bart en Mariska's Webstek
Re: Return the Min and Max value from an ARRAY of TDateTime
« Reply #1 on: February 18, 2020, 06:45:21 pm »
Unit Math has:
Code: Pascal  [Select][+][-]
  1. function minvalue(const data : array of Double) : Double;inline;
  2. function maxvalue(const data : array of Double) : Double;inline;

TDateTime is a Double.

Bart

Odacir

  • New Member
  • *
  • Posts: 41
Re: Return the Min and Max value from an ARRAY of TDateTime
« Reply #2 on: February 18, 2020, 06:46:45 pm »
Thanks a lot Bart!

 

TinyPortal © 2005-2018