Posted on August 31st, 2008 by Groundware
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, [...]
Filed under: Uncategorized | No Comments »
Posted on August 31st, 2008 by Groundware
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 :=
[...]
Filed under: Uncategorized | No Comments »
Posted on August 30th, 2008 by Groundware
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;
Filed under: Uncategorized | No Comments »
Posted on August 30th, 2008 by Groundware
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.
[...]
Filed under: Uncategorized | No Comments »
Posted on August 29th, 2008 by Groundware
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 [...]
Filed under: Downloads, Electronics, Software | 1 Comment »
Posted on August 29th, 2008 by Groundware
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 [...]
Filed under: Downloads, Electronics, Software | No Comments »