Docs » Autodocs » dos.library » FindArg
FindArg - find a keyword in a template (V36)
index = FindArg(template, keyword) D0 D1 D2 LONG FindArg(STRPTR, STRPTR)
Returns the argument number of the keyword, or -1 if it is not a keyword for the template. Abbreviations are handled.
keyword - keyword to search for in template template - template string to search
index - number of entry in template, or -1 if not found
In earlier published versions of the autodoc, keyword and template were backwards.
ReadArgs(), ReadItem(), FreeArgs()
|