Sign in Join
FPDoc Onlineexperiment

TOption.SetOption procedure

Member of TOptionpublicIn unit getopts

Set all option fields in 1 call.

Declaration

pascal
procedure SetOption(const aName: string; AHas_Arg: Integer=0; 
 AFlag: PAnsiChar=Nil; AValue: AnsiChar=#0)

Description

SetOption can be used to set all fields in 1 single call:

  • Name is set to aName
  • Has_arg is set to aHas_arg
  • Flag is set to aFlag
  • Value is set to aValue

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