function IndexOfValue(const List: TStrings; const Value: String): Integer;
  var
    I: Integer;
...

Delphi On TStrings IndexOfValue

by Tony, November 03, 2011 06:07

I use functions like this t...

D41d8cd98f00b204e9800998ecf8427e Talk
function IndexOfValue(const List: TStrings; const Value: String): Integer;
  var
    I: Integer;
...

Delphi On TStrings IndexOfValue

by Tony, November 03, 2011 06:07

I use functions like this t...

D41d8cd98f00b204e9800998ecf8427e Talk
type
  TProcedureParam = procedure;

...

Delphi On What has been called a &quo...

by Ants, December 31, 2010 11:50 Star_fullStar_fullStar_full

That code is a nice pile of...

F9a9ba6663645458aa8630157ed5e71e Talk
unit Unit1;

interface
...

Delphi On Draw Canvas Arrow

by DarkAxi0m, December 08, 2010 00:50 Star_fullStar_fullStar_full

i have not done much to the...

C99bb2b0dfcf7dba9aabf244a3330ac2 Talk

Delphi On TStrings IndexOfValue

by atmotaIrrap, September 13, 2010 08:46

I suck coz I only appear to...

A4498a04928b7302fe4cc65133cd7bdd Talk
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
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
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...

D41d8cd98f00b204e9800998ecf8427e Talk

Delphi On XML Helper Function

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

you could use a different x...

92647e77af9606a13dc6ccc39dc37265 Talk
{$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...

7983135a9fcc8bcfe9d9de240225512a Talk
// 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
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...

7983135a9fcc8bcfe9d9de240225512a Talk
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...

7983135a9fcc8bcfe9d9de240225512a Talk

Delphi On Array Helper Functions

by jamiei, February 04, 2009 11:48

Apologies to all - @Andreas...

Ec72b0ab3eb1855c56fd04bcc886f65c Talk
{$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...

D41d8cd98f00b204e9800998ecf8427e Talk
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