; Compare
;
; Description: The function CMP is used to compare if S is
; in the range from TMP to TMN, and determine
; any type of data date, numeric, or string in a
; specific range.
; Return: 1 = True
; 0 = False
; Parameters:
; S = Selected items to compare
; INF = Order of items selected by user
; IINA =
; TMP = Lower limit
; TMN = Uper limit
; Code begins:
FILL(INC,REF)
; Fill up incount array
PRVF(CF,AR)
; Previous field
NXTF(CF,AR)
; Next field ien
;
; Description: The function NXTF is used to return next field
; ien, given current field ien CF
; Return: Field ien for next field of CF
; Parameters:
; CF = current field ien
; AR = Name of array which contains an array of field ien
; Code begins: