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

TConditionalStrings.IndexOf

Find index of conditional string matching criteria

Declaration

Source position: fpmkunit.pp line 486

public function TConditionalStrings.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.


Documentation generated on: Dec 15 2025