Delphi FunctionsHow to create functions that can accept variable number of parameters such as Format().Sometimes it's necessary to pass undefined number of [different type] variables to a function -- look at Format() function in Delphi and *printf() functions in C/C++ for example. Once you...
Our job is to develop a Delphi function that transforms a resource identifier referenced by aPCharinto an appropriately formatted string for use in a URL.Listing 1shows a solution: 1functionFormatResNameOrType(ResID:PChar):string; 2begin ...
Now create a new delphi application and drop aTComboBoxand aTWebBrowseron the main form. We will load the HTML document when the form is first shown. We will also load the screen fonts into the combo box at the same time. To do this create anOnShowevent handler for the form with the...
You can find Delphi code samples inGitHub Repositories. Search by name into the samples repositories according to your RAD Studio version. Description This sample uses theUse Connection Definitiondrop-down menu to select a connection definition. If the database requires login cr...
With Delphi, you can write and use your own DLLs and even call functions regardless of whether or not they were developed with other systems or developers, likeVisual Basic, orC/C++. Creating a Dynamic Link Library The following few lines will demonstrate how to create a simple DLL using Del...
From the post we know, how to create and use Python4Delphi components such as TPythonEngine, TPythonModule, TPythonType by a simple drag and drop in our application. But sometimes developers may need to instantiate those components dynamically rather than using GUI components. H...
THE DELPHI TECHNIQUE How to achieve a workable consensus within time limitsStuter, L
So, I wanted to create the OnCellDblClick event, but as I've said earlier, I don't know how to do it. I noticed that a lot of people want this same event, but I can't find the answerd to it. Is it possible to know if the double click was on a record, if it was, then...
Also, we've found a non-described restriction in XLLs: the total length of a string containing all parameter names of a given function divided by a separator character minus one cannot be greater than 255. The same restriction applies to parameter descriptions. If any of such strings exceed ...
With Delphi, you can write and use your own DLLs and even call functions regardless of whether or not they were developed with other systems or developers, likeVisual Basic, orC/C++. Creating a Dynamic Link Library The following few lines will demonstrate how to create a simple DLL using Del...