Delphi String Handling (Removing spaces)

source : http://www.festra.com
Count each non-spaces substring as a word, if it is followed by a space, or if it comes at the end of the string. With this rule, you don’t have to worry about multiple, leading nor trailing spaces
Delphi 7 code example:
suppose your string is in variable S, WordCount and CharCounter are integers, [...]

Line number of the cursor in a TMemo

source : http://www.festra.com
To determine which line number the cursor of a Memo component is in, you can use the Windows API function SendMessage. (*API = Application Programmr Interface)
In the example below, the integer variable LineNumber receives the line number that the cursor of Memo1 is in:
LineNumber :=
[...]

Disable/enable an individual radio button of a RadioGroup

source : http://www.festra.com
The following code shows how to disable or enable an individual radio button in a TRadioGroup component, the second radio button in our example. Note that the RadioGroup.Controls is a zero based array.
procedure TForm1.Button1Click(Sender: TObject);
begin
TRadioButton(RadioGroup1.Controls[1]). Enabled := False;
end;

Create and free Delphi form dynamically

source : http://www.festra.com
When creating a Delphi component dynamically (a form or whatever other component), in the Create method you have to specify its owner, for example:
Form2 := TForm2.Create(aOwner);
aOwner can be another object or nil (no owner):
- a component with an owner is destroyed automatically, when its owner is destroyed.
[...]

8051 C-Compiler uC51 Software

The µC/51 compiler is well known for it’s high quality and high density code. You can develop high quality software for any 8051 in ANSI C. µC/51 [...]

The Prog-Studio 6 Software

Aside from basic functions such as the reading, programming, comparison copying and erasure of chips in the Batronix programming devices, the Prog-Studio 6 software offers numerous other [...]

Page 1 of 11