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
Package name ltpda
VCS Version 175910878ca914560542d679d9d392de37438d84
Min input args 1
Max input args -1
Min output args 1
Max output args -1




©LTP Team