Execute A Delphi Object Snippets


Here's a simple trick to execute a Delphi object's method by name:

15 June, 2013   

Example shows here How to Clone a Delphi Form. Note: when you create a new clone from an existing form, the clone's OnCreate will not execute.

Delphi code for using CreateProcess to Execute Programs

Delphi code example Using CreateProcess to Execute Programs

As the most important building block of any Delphi application, the TForm object is most of the times used as is. Delphi's TForm object provides enough properties and events to help you do (and control) whatever needed with it. Sometimes you'll find out that a few events or properties are missing... Try creating a simple form application. Now...

15 June, 2014   

Example for updating a record in a database with perl and the DBU module.

04 April, 2012   

Delphi code example for TColor to HTML color

By default, Delphi gets its date/time, currency and numeric format from Control Panel's International settings. We can set the constants defined in Delphi, like DecimalSeparator, ShortDateFormat and others like in the code below. To a complete list of these variables, look at Currency and date/time formatting variables in Delphi Help.

Maxscript UI & Graphical RPManager - Control multiple object properties with single object for

11 February, 2013   

Quicktime still requires the double-object method to get it done across all browsers. Not super pretty, but it does get the job done.

A short and simple code snippet using voice output with Delphi

18 May, 2011   

To randomize an array we loop over the length of the array, removing an object chosen at random and then adding it back onto the Array’s end position. Think of this as having a deck of cards where you pick a card at random from the deck and move it to the top of the stack repeated for the total number of cards in the deck. It’s important to...

Ever wondered how Visual Studio executes a process - such as a compiler - and displays the text it returns in its own window? It's actually really easy - and here's a simple example as to how.

01 June, 2013   

Example shows here how to Embed Code for Quicktime

02 December, 2012   

Delphi code example for HTML color to Delphi TColor

05 February, 2011   

Valid technique, as it doesn't need the <embed> tag.

10 March, 2012   

Example Delphi code for Copying a screen

Example shown here how to best insert a flash movie into an XHTML document.

An example code of how to best insert a flash movie into an XHTML document.

20 July, 2013   

Source code for Flash movie into valid XHTML