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

TConditionalStrings.Add

Add a new conditional string

Declaration

Source position: fpmkunit.pp line 488

public function TConditionalStrings.Add(

  const Value: string

):TConditionalString; overload;

function TConditionalStrings.Add(

  const Value: string;

  const OSes: TOSes

):TConditionalString; overload;

function TConditionalStrings.Add(

  const Value: string;

  const CPUs: TCPUS;

  const OSes: TOSes

):TConditionalString; overload;

Arguments

Value

  

String value to add

Function result

Newly created conditional string item

Arguments

Value

  

String value to add

OSes

  

Set of operating systems for this conditional string

Arguments

Value

  

String value to add

CPUs

  

Set of CPU architectures for this conditional string

OSes

  

Set of operating systems for this conditional string

Description

Creates and adds a new conditional string with the specified value and platform restrictions. The string will only be used when the current build targets match the specified CPU architectures and operating systems.

Platform-specific strings enable configuration of different values for different target platforms within the same package.


Documentation generated on: Dec 15 2025