Method plist/getIndexForKey


  GETINDEXFORKEY returns the index of a parameter with the given key.
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
  DESCRIPTION: GETINDEXFORKEY returns the index of a parameter with the
               given key or -1 if the key is not found.
 
  CALL:        idx = getIndexForKey(pl, 'key')
               idx = getIndexForKey(pl, pl)
 
  EXAMPLES:
 
  1)  idx = pl.getIndexForKey('foo') % get the parameter with key 'foo'
  2)  idx = pl.getIndexForKey(plist('key', 'WIN')) % get the parameter with key 'WIN'
 
  Parameters Description
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Method Details
Access public
Defining Class plist
Sealed 0
Static 0

Parameter Description

Default

no description
Key Default Value Options Description
KEY '' none The key of the parameter to get the index of.
back to top back to top

Some information of the method plist/getIndexForKey are listed below:
Class name plist
Method name getIndexForKey
Category Helper
CVS Version 1af0b21675e8089cbd0dd1d95314adeb4a9a0023
Min input args 1
Max input args -1
Min output args 1
Max output args -1




©LTP Team