Difference between revisions of "INLIST()"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Class==
 
String Data
 
 
 
 
==Purpose==
 
==Purpose==
 
Function to search a list of expressions
 
Function to search a list of expressions
Line 12: Line 8:
  
 
==See Also==
 
==See Also==
[[AT()]], [[ATNEXT()]], [[INLIST()]], [[LEFT()]], [[LOOKUP()]], [[OCCURS()]], [[RAT()]], [[RIGHT()]], [[RLOOKUP()]], [[STR()]], [[STREXTRACT()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]]
+
[[AT()]], [[ATNEXT()]], [[LEFT()]], [[LIKE()]], [[LOOKUP()]], [[OCCURS()]], [[RAT()]], [[RIGHT()]], [[RLOOKUP()]], [[STR()]], [[STREXTRACT()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]]
  
  
Line 31: Line 27:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
[[Category:String Data]]
 +
[[Category:String Data Functions]]
 +
[[Category:Expressions and Type Conversion]]
 +
[[Category:Expressions and Type Conversion Functions]]

Latest revision as of 16:32, 2 December 2009

Purpose

Function to search a list of expressions


Syntax

INLIST(<exp1>,<exp2>[,<exp3>...])


See Also

AT(), ATNEXT(), LEFT(), LIKE(), LOOKUP(), OCCURS(), RAT(), RIGHT(), RLOOKUP(), STR(), STREXTRACT(), STRTRAN(), STUFF(), SUBSTR()


Description

The INLIST() function searches a list of expressions and returns a logical true (.T) if the specified expression is found within that list. The expression to search for is represented by <exp1>. Expressions following <exp1> make up the list in which the INLIST() function will search. All the expressions specified must be the same data type: character, numeric, logical, date.


Example

do case
case inlist(cState, "CA", "OR", "WA", "NV")
    cTimezone = "Pacific"
case inlist(cState, "MT", "ID", "WY", "UT", "CO","AZ", "NM")
    cTimezone = "Mountain"
endcase


Products

Recital Server, Recital