Updating calculated gridview field
DPR file), while the forms (windows) are described in files with the DFM extension, ie. Here's a skeleton of a unit: Open a DOS box, compile the program with "dcc32console", and run the compiled as with "console.exe".In the empty form that shows up when starting Delphi, add a label and a pushbutton, double-click on the button, and add the following code to the Button1Click() routine: Hit F9 to run the application, and click on the pushbutton to see the text of the label change.That's the reason why some components are distributed as source code that you must compile yourself into a package before adding it to the IDE.
Here's an example: To deallocate a dynamic array, assign nil to a variable that references the array or pass the variable to Finalize; either of these methods disposes of the array, provided there are no other references to it.With D7 at least, Delphi's Message Dlg doesn't let you select a default button, which is unfortunate for critical choices.You'll have to use Win32's Message Box() instead: When you add a control on a form at design-time, Delphi takes care of creating and freeing the object, but those tasks are your responsibility when creating objects dynamically, at run-time.Moving a design package to another host requires copying the following files: BPL, DCP, possibly DCR resources files, hitting the Component Install Packages menu, and clicking on Add.
In addition to individual packages, it is possible to create a package collection (DPC) to make it easier to distribute the different files that make up a package. This type of file requires a Package Collection Editor (PCE), which is a source file used to define a DPC file.
The important point is freeing the object from memory, or your application will leak memory.