Blog Archives

5-Minute-Snack: Determine the vertical refresh rate in Hz of your display

Delphi has taken great strides in the RTL that make using direct Windows API calls more and more redundant. A lot of things can be determined using classes that can either be found in the RTL or VCL. However, the vertical refresh rate seems to have been overlooked as I cannot find it in any of the new classes of the RTL.

Read more ›

Tags: , , , , , , , ,

5 Minute Snack: Reading floats with StrToFloat and TFormatSettings independent of system region settings

This is one of the topics that sadly shows up mostly at run-time when you already deployed the app to your customers.

We all have our development machine. Our application works just fine. And then we deploy to the customer and the customer says that he gets an error that “12,5 is not a valid float value”.

Read more ›

Tags: , , ,

5-Minute-Snack: Dealing with dates and time in Delphi. Hints about System.DateUtils.

Thinking back to Delphi 7, I clearly remember that the first thing I did was to import some sort of unit that provided more operations for string and date handling. Looking at Delphi Berlin – things have changed.

Especially when it comes to calculations that deal with time and dates –

Read more ›

Tags: , , ,

Partnerships



Top