In code this would look something like this: 1uses 2 System.Win.Registry; 3 4type 5 TDelphiInfo = record 6 Name: string; 7 RegKey: string; 8 end; 9 10const 11 AllDelphis: array[0..25] of TDelphiInfo = ( 12 (Name: '2'; RegKey: '\SOFTWARE\Borland\Delphi\2.0'), 13 (...
A demo program to accompany this article can be found in thedelphidabbler/article-demosGit repository on GitHub. You can view the code in thearticle-05sub-directory. Alternatively download a zip file containing all the available demos by going to the repository's landing page and clicking theCl...
While the techniques in this article will still return results, those results may not be accurate for Windows 10 and later. One final point. The code was written before Unicode support was added to Delphi. Some changes to the code will be required to compile on Unicode versions of Delphi.Co...
How can I convert from string to code in C# How can I convert object into Type T? how can i create a countdown timer using C# ? How can I create a file in a sftp server. (c# console application) How can I create an .EXE file from a Visual Studio project? How can I create ...
document object we must have loaded a document into the browser. This means we can't use this code on the web browser control until a document has been loaded. The simplest way to ensure this is by navigating toabout:blank. We can do this in the Form'sOnShowevent handler which we add...
You can find Delphi code samples inGitHub Repositories. Search by name into the samples repositories according to your RAD Studio version. How to Use the Sample Navigate to the location given above and openIFDPhys_Async.dproj. Press F9 or chooseRun > Run. ...
Download free sample Excel add-in in Delphi with complete source code Add-in Express Toys toolbar Add-in Express Toys adds to MS Excel a new toolbar with several buttons: The buttons are: Shows Add-in Express Toys About window. Enables/disables "wrap text" for the selected Excel cells. ...
Any explanation of why these lines of code are bad? Is something totally different about strings in the new Delphi as compared to Delphi 7? { lbx.Items.Add(Dest + '[' + Dest2 + ']'); } { TODO: So plus signs are illegal now? How do you concatenate strings?} lbx.Items.Add(Conca...
InDelphi(Object Pascal), you can use the record keyword to define a C-like structure. For example, type data = record key: string; value: integer; end; It is interesting to know that you can use theobjectkeyword to do the same thing, like this: ...
The actual call to a procedure is nothing more than: DllMessage; The entire code for a Delphi form (name:Form1), with a TButton (namedButton1) that calls the DLLMessage function, looks something like this: unitUnit1; interface uses ...