Sign in Join
FPDoc Onlineexperiment

TConditionalStrings.IndexOf function

Member of TConditionalStringspublicIn unit fpMkUnit

Find index of conditional string matching criteria

Declaration

pascal
function IndexOf(Value: string; aCPU: TCpu; aOS: TOS): Integer

Arguments

Value

String value to search for

aCPU

CPU architecture to match in search

aOS

Operating system to match in search

Function result

Index of found string or -1 if not found

Description

IndexOf searches the collection for a conditional string that matches the specified platform criteria.

Returns the zero-based index of the first matching conditional string, or -1 if no match is found.

The search compares CPU architecture, operating system, and optionally string value to find matching entries.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.