Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 06/19/19 in all areas

  1. Hi, I want to be able to retrieve the currency code from the local settings. I've got a list with currency codes and countries, etc. For example, if the system is in the US, I would like to get the USD code, etc. The IFMXLocaleService.GetCurrentLangID returns a generic 'en' from which I am not able to retrieve the currency symbol. Anyone any ideas? Thanks a lot
  2. David Heffernan

    Laufleistung

    No English speaker I know, here in the UK, would say anything other than mileage. This is one of those words whose meaning is now detached from its etymology.
  3. toms

    Laufleistung

    Read the comments on this page: https://painintheenglish.com/case/451
  4. Mike Torrettinni

    Laufleistung

    What about "Lifetime km/mi:" ?
  5. Bill Meyer

    JSON string value

    I've no doubt Delphi is an outlier. The powers that be clearly failed to recognize that the books in the box represented a significant fraction of the value of the product. Also, there are numerous products for which "documentation" means simply a reference manual, and though such is essential, manuals discussing usage and library application are also important. Delphi once had an array of volumes, and they made it much easier for newcomers to the language to be productive quickly.
  6. Kryvich

    Pas2js for Delphi

    I have made an adaptation of Pas2js for Delphi compiler. So now it's possible to compile and debug the code of this utility in Delphi IDE. If somebody interested you can find it here: https://github.com/Kryuski/pas2js-for-delphi. The original Pas2js transpiler for Free Pascal is here: http://wiki.freepascal.org/pas2js
  7. First, this sounds like premature optimization. Yes it is 6 times slower, but you are talking about milliseconds for huge number of objects. Next, if you really need to optimize for speed, you can completely remove getter and setter methods. That is the beauty of Delphi - it does not need them at all and you can freely add getter and setter methods later on (if needed) without breaking the public API. Inline approach can solve the immediate problem, but keep in mind that inline directive is just recommendation for the compiler and under some circumstances such methods will not get inlined (though compiler will give you hint in those cases). Essentially you are writing a whole a lot of code for nothing.
×