1
2
3
4
program TestChangeValue;
{$APPTYPE CONSOLE}
uses Classes, SysUtils;
...

Delphi On Change Value Or Word in a W...

by Wouter van Nifterick, March 05, 2010 03:11

The program below outputs t...

45af96802dc2ea89356c254bd9d0af06 Talk
1
2
3
4
function getFirstElementTextByName(const ElementName: string; const XMLDoc: IXMLDocument): string;
var
  NodeList: IDOMNodeList;
...

Delphi On XML Helper Function

by Wouter van Nifterick, March 05, 2010 02:49

I didn't really look into t...

45af96802dc2ea89356c254bd9d0af06 Talk

Delphi On TStrings IndexOfValue

by DarkAxi0m, September 25, 2009 03:50

Sorry i should have made it...

C99bb2b0dfcf7dba9aabf244a3330ac2 Talk
1
2
3
4
function indexOfValue(list : TStrings; value : string): integer;
begin
  Result := list.IndexOf(value);
...

Delphi On TStrings IndexOfValue

by Kenny, September 24, 2009 21:15

The way you implemented thi...

Avatar Talk

Delphi On XML Helper Function

by X-Ray, March 29, 2009 14:54

you could use a different x...

92647e77af9606a13dc6ccc39dc37265 Talk
1
2
3
4
{$IFNDEF UNICODE} // pre Delphi 2009
type
  UnicodeString = WideString;
...

Delphi On Change Value Or Word in a W...

by ahuser, February 22, 2009 11:00 Star_fullStar_full

This code is is based on yo...

79cd9de769fe6d73b642cacaa363c605 Talk
1
2
3
4
// not tested

var
...

Delphi On Change Value Or Word in a W...

by X-Ray, February 21, 2009 17:46 Star_fullStar_fullStar_full

this comment doesn't direct...

92647e77af9606a13dc6ccc39dc37265 Talk
1
2
3
4
type
  THashValue = Cardinal;

...

Delphi On custom index for class(TList)

by ahuser, February 12, 2009 17:32 Star_fullStar_fullStar_fullStar_full

And this is the code that u...

79cd9de769fe6d73b642cacaa363c605 Talk
1
2
3
4
function TMylist.GetNameIndex(const aName: string): integer; // use "const" for strings to eliminate the injected try/finally
var
  LocalList: PPointerList;
...

Delphi On custom index for class(TList)

by ahuser, February 12, 2009 11:52 Star_fullStar_fullStar_fullStar_fullStar_full

The following code should b...

79cd9de769fe6d73b642cacaa363c605 Talk

Delphi On Array Helper Functions

by jamiei, February 04, 2009 11:48

Apologies to all - @Andreas...

Ec72b0ab3eb1855c56fd04bcc886f65c Talk
1
2
3
4
{$IF not declared(TBytes)}
type
  TBytes = array of Byte;
...

Delphi On Array Helper Functions

by Andreas Hausladen, February 04, 2009 11:26 Star_fullStar_fullStar_fullStar_fullStar_full

How did you get this to com...

Avatar Talk
1
2
3
procedure CopyIntoArray(var DestArray: Array of Byte; SourceArray: Array of Byte; StartIndex: integer);
begin
...

Delphi On Array Helper Functions

by DarkAxi0m, February 03, 2009 23:14

Using Delphi 7;

Move seems...

C99bb2b0dfcf7dba9aabf244a3330ac2 Talk