Unit 'HTTPDefs' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TCookies.IndexOfCookie

Returns the index of a cookie by name

Declaration

Source position: httpdefs.pp line 210

public function TCookies.IndexOfCookie(

  const AName: string

):Integer;

Arguments

AName

  

Name of the cookie to find

Function result

Index of the cookie or -1 if not found

Description

IndexOfCookie returns the zero-based index of the cookie with the specified name. Returns -1 if no cookie with the given name is found.


Documentation generated on: Jan 16 2026