Skip to content

TCustomApplication.GetOptionValues

Get the values for an option that may be specified multiple times.

Declaration

Source position: custapp.pp line 85

public 
function TCustomApplication.GetOptionValues(const C: char; 
                                           const S: string)
                                            : TStringArray;

Description

GetOptionValues returns all values specified by command-line option switches C or S. For each occurrence of the command-line option C or S, the associated value is added to the array.

TCustomApplication.GetOptionValue will only return the first occurrence of a value.

Errors

None.

See also

Name Description
TCustomApplication.GetOptionValue Return the value of a command-line option.