Category Archives: Tips and Tricks

Tips and tricks how to avoid common mistakes or how to generally improve your code.

Platform Icons in Alexandria 11.1

With the brand new version Alexandria 11. 1 of RAD Studio Embarcadero introduced icons for the platform in the so called project gallery. Since Alexandria 11.1 supports High DPI the platforms icons fit to the current resolution of the screen. … Continue reading

Posted in Delphi, RAD Studio 11 Alexandria, Tips and Tricks, TMS Software, TMS Web Core, Uncategorized | Comments Off on Platform Icons in Alexandria 11.1

UltraEdit

Maybe most of you already heard it but Idera has acquired UltraEdit! I’m using UltraEdit for many years. It is a very powerful text editor which many features. I mostly like the hex editor. Anyway, maybe in the future UltraEdit … Continue reading

Posted in Delphi, Tips and Tricks, Uncategorized | Comments Off on UltraEdit

TBytesStream

I guess that you all already worked with a TBytesStream. It is derived from a TMemoryStream and offers direct access to the underlying TBytes: … TBytesStream = class(TMemoryStream) private … property Bytes: TBytes read FBytes; end; … So far so … Continue reading

Posted in Delphi, RAD Studio 10.4 Sydney, Tips and Tricks, Uncategorized | Comments Off on TBytesStream

Encoding of .pas files part 2

In my last post I explained that it is a good strategy to encode .pas files in UTF8. From RAD Studio 10.4 you can set under “Tools/Options/User Interface/Editor” the “Default file encoding” to UTF8. In older versions of RAD Studio … Continue reading

Posted in RAD Studio 10 Seattle, RAD Studio 10.1 Berlin, RAD Studio 10.2 Tokyo, RAD Studio 10.3 Rio, RAD Studio 10.4 Sydney, RAD Studio XE5, RAD Studio XE6, RAD Studio XE7, RAD Studio XE8, Tips and Tricks, Uncategorized | Comments Off on Encoding of .pas files part 2

Encoding of .pas files

This week I would like to talk about the encoding of .pas files. Normally they are ANSI encoded which is no problem since all Delphi statements are ASCII encoded. But the exception are comments. Many developers overlook this issue, but … Continue reading

Posted in C++-Builder, Delphi, RAD Studio 10 Seattle, RAD Studio 10.1 Berlin, RAD Studio 10.2 Tokyo, RAD Studio 10.3 Rio, RAD Studio 10.4 Sydney, RAD Studio XE5, RAD Studio XE6, RAD Studio XE7, RAD Studio XE8, Tips and Tricks, Uncategorized | Comments Off on Encoding of .pas files

Delphi 10.4.2

I just installed Delphi 10.4.2 and compiled a huge customer’s project. This project has about 2.3 million lines of code. Normally it is written and maintained with Delphi 10.3.3 Rio. For working inside the IDE it is compiled for Win32 … Continue reading

Posted in Delphi, RAD Studio 10.3 Rio, RAD Studio 10.4 Sydney, Tips and Tricks | Comments Off on Delphi 10.4.2

Async and Await in TMS Web Core

Today we published a blog article on the TMS Software web site. In this article Leon explains how to write complex asynchronous Web applications with TMS Web Core and Pascal. The trick is that asynchronous calls can be written in … Continue reading

Posted in Delphi, HTML, RAD Studio 10 Seattle, RAD Studio 10.1 Berlin, RAD Studio 10.2 Tokyo, RAD Studio 10.3 Rio, RAD Studio 10.4 Sydney, RAD Studio XE7, RAD Studio XE8, Tips and Tricks, TMS Software, TMS Web Core, Uncategorized, Visual Studio Code | Comments Off on Async and Await in TMS Web Core

Did you know…?

Did you know that the RAD Studio Welcome Page shows if you have installed all necessary updates? I just learned that a necessary patch for macOS Big Sur was missing in my installation. Here you can see the current status … Continue reading

Posted in C++-Builder, Delphi, RAD Studio 10.4 Sydney, Tips and Tricks, Uncategorized | Comments Off on Did you know…?

TMS Web Core and FinalBuilder

TMS Web Core offers a command line compiler that can be used in Continuous Integration systems like the FinalBuilder. There you can simply add the so called “Execute Program” action to your project and select the TMSWebCompiler.exe as the program … Continue reading

Posted in Delphi, Third Party Components, Tips and Tricks, TMS Software, TMS Web Core, Uncategorized | Comments Off on TMS Web Core and FinalBuilder

ModelMaker Code Explorer

Today I would like to recommend the ModelMaker Code Explorer (MMX) as a must-have IDE plugin. It allows to refactor, sort and organize the code. It also shows bad coding style like long methods, magic numbers and hard-coded strings. Originally … Continue reading

Posted in Delphi, Third Party Components, Tips and Tricks, Uncategorized | Comments Off on ModelMaker Code Explorer