Unit 'amigados' Package
[Overview][Constants][Types][Procedures and functions][Index] [#amunits]

FindArg

Find a keyword in a template

Declaration

Source position: amigados.pas line 1638

function FindArg(

  const keyword: pCHAR;

  const arg_template: pCHAR

):LongInt;

function FindArg(

  const keyword: string;

  const arg_template: pCHAR

):LongInt;

function FindArg(

  const keyword: pCHAR;

  const arg_template: string

):LongInt;

function FindArg(

  const keyword: string;

  const arg_template: string

):LongInt;

Arguments

keyword

  

Keyword to search for in template

Function result

Number of entry in template, or -1 if not found

Arguments

keyword

  

Keyword to search for in template

Arguments

keyword

  

Keyword to search for in template

Arguments

keyword

  

Keyword to search for in template

Description

Returns the argument number of the keyword, or -1 if it is not a keyword for the template. Abbreviations are handled.

See also

ReadArgs

  

Read bytes of data from a file

ReadItem

  

Reads a single argument/name from command line

FreeArgs

  

Free allocated memory after ReadArgs()


Documentation generated on: 2021-07-30