INLIST (return item exists in list)

Top  Previous  Next

 

INLIST( item, symbol )

INLIST

Returns the instance number of the item in the symbol.

item

A string constant or symbol containing the name of the item to return.

symbol

A multi-valued symbol that may contain the item.

The INLIST procedure returns the instance number of the item in the symbol. If the item is not contained in the symbol, INLIST returns zero (0).

Return Data Type:     LONG

Example:

#IF(INLIST('?MyControl',%Control))

 !Generate some source

#ENDIF

See Also:

Built-In Template Procedures