Delphi’s holy source of knowledge!
-
How can I use Horse webframework in Delphi
Horse is a web framework for the Pascal programming language, including Delphi. It allows you to build web applications using a simple, expressive syntax that is similar to Sinatra in Ruby or Flask in Python. To use Horse in Delphi, you will need to install the Horse package from the command line using the Delphi…
-
How can I use TChromiumOSR in Delphi
TChromiumOSR (Off-Screen Rendering) is a component that allows you to use the Chromium web browser engine in a Delphi application without displaying a user interface. You can use it to render web pages off-screen, manipulate the DOM, and execute JavaScript. To use TChromiumOSR in Delphi, you will need to install the CEF4Delphi package, which is…
-
How can I change monitor resolution in Delphi
To change the monitor resolution in Delphi, you can use the ChangeDisplaySettings function from the Windows API. This function allows you to change the display settings for the current desktop, including the screen resolution, color depth, and refresh rate. Here is an example of how to use the ChangeDisplaySettings function to change the monitor resolution…
-
How can I make web application in Delphi (Part1)
Delphi is a programming language and software development kit (SDK) for building Windows, macOS, Android, and iOS applications. You can use Delphi to create a web application by using one of the following approaches Create a web server application using the Internet Direct (Indy) library Indy is a third-party library for Delphi that provides support…
-
How can I make implode and explode array in Delphi
In Delphi, you can use the StringReplace function from the System unit to implement the implode function, which concatenates the elements of an array into a string. Here is an example of how you can implement the implode function in Delphi: function Implode(const Delimiter string; const Values array of string) string; var I Integer; begin…
-
How can I use System.Actions in Delphi
The System.Actions unit in Delphi provides classes for creating and managing action lists and action objects. Action objects are components that represent a specific action that can be performed, such as opening a file or printing a document. Action lists are containers for action objects, and they provide a way to group related actions and…
-
How can I use System.IniFiles in Delphi
The System.IniFiles unit in Delphi provides classes for reading and writing INI files. INI files are plain text files that store configuration information in a simple key-value format. Here is an example of how you can use the TMemIniFile class from the System.IniFiles unit to read and write values to an INI file uses System.IniFiles;…
-
How can I use System.DateUtils in Delphi
The System.DateUtils unit in Delphi provides various functions for working with dates and times. Here is an example of how you can use some of the functions from the System.DateUtils unit: uses System.DateUtils; var Today, Tomorrow: TDateTime; begin Today := Date; WriteLn(‘Today is ‘, DateToStr(Today)); Tomorrow = IncDay(Today, 1); WriteLn(‘Tomorrow is ‘, DateToStr(Tomorrow)); if IsToday(Tomorrow)…