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 like e.g. Tokyo (version 19.0) you can set the hidden registry key

HKEY_CURRENT_USER\Software\Embarcadero\BDS\19.0\Editor]
“DefaultFileFilter”=”Borland.FileFilter.UTF8ToUTF8”.

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 they write comments in their native language and then it can happen that their are non-ASCII chars like German umlauts. In this case it is necessary to encode the source files in UTF8. Be careful, look at your comments or simply always encode the sources in UTF8.

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

The Power of Delphi

One of my customers is working with Delphi for more than 20 years and he is now using the same codebase for an incredible number of project types. These types will show you how powerful Delphi is compared to other languages. The project types are: Win32 Vcl desktop application, Win64 Vcl desktop application, Win32 commandline application, Win64 commandline application, Win32 ISAPI application, Win64 ISAPI application, Win32 dll, Win64 dll, Win32 service, Win64 service, Win32 TMS XData webservice, Win64 TMS XData webservice, IntraWeb web application, FMX macOS desktop application, FMX Linux desktop application, TMS Web Core web application, TMS Web Core PWA application, TMS Web Core Electron application. Furthermore, several C++ dlls are imported. The whole code uses the same self-written RTL and ORM. The forms are platform specific.

I hope that this incredible number gives you an idea of the flexibility and power of the Delphi language.

Posted in Delphi, FireMonkey, 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 XE5, RAD Studio XE6, RAD Studio XE7, RAD Studio XE8, TMS Software, TMS Web Core | Comments Off on The Power of Delphi

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 since the DCC32 is the fastest Delphi compiler.

I just did a test and compiled the project in 2.5 minutes which is a very good result and shows how fast the DCC32 is. But then I compiled with 10.4.2 Sydney and could compile the whole project within incredible 1.5 minutes! This means that the turn-around times for daily work is about nearly the half! That is why my recommendation to all Delphi users is: Move to the latest version 10.4.2 Sydney immediately!

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

HTML templates in Web Core

Did you know that you can connect TMS Web Core applications to existing websites? This is a very important feature since it allows you to create websites by web designers and then implement the business logic in pure Pascal. But I will not explain too much since we uploaded a video about this topic under tmssoftwareTV.

Enjoy the video and learn more about HTML templates!

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, TMS Software, TMS Web Core | Comments Off on HTML templates in Web Core

Happy Birthday!

Hi all,

today is Delphi’s 26th Anniversary! Happy birthday to this wonderful development language!

I started to work with Delphi 2 and used Delphi 1 for legacy 16 bit applications.

From this moment I used all Delphi versions 1, 2, 3, 4, 5, 6, 7, 8, 2005, 2006, 2007, 2009, XE, XE2, XE3, XE4, XE5, XE6, XE7, XE8, Seattle, Berlin, Tokyo, Rio and Sydney. Currently I prefer Sydney with dark theme and enabled LSP.

Happy Birthday! 🙂

Posted in 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 | Comments Off on Happy Birthday!

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 a synchronous way so that the code looks like in a regular desktop application. But I do not want to spoiler, click on the above link and read this great article.

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

Need a new Web Application?

Due to the current situation, i.e. most retail shops are closed and many people have to work from home, web applications become more and more interesting to keep your business going.

Fortunately we can use the full power of the Delphi IDE to create new web applications. With the help of TMS Web Core we can run Pascal code inside the browser similar to Windows desktop applications. On the server side we can use well-known tools like RAD Server or TMS Business.

If you need any help or have questions contact Embarcadero, TMS or simply myself.

Posted in Delphi, TMS Software, TMS Web Core | Comments Off on Need a new Web Application?

Happy New Year

Happy New Year to everyone! 🙂

Posted in Uncategorized | Comments Off on Happy New Year

Merry Christmas

I wish a Merry Christmas to everyone. 🙂

Posted in Uncategorized | Comments Off on Merry Christmas