JVCL Help:TJvTFDateList.IndexOf

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Returns the position of an item in the list.


Pascal

 functionIndexOf(ADate: TDate): Integer;


Parameters

Parameters Description
ADate: TDate The date to find.


Return Value

The index of the item or -1 if not found.


Description

Call IndexOf to obtain the position of the first occurrence of an item that matches ADate. An item matches ADate if it is identical to ADate or if it differs only in the time portion of ADate. IndexOf returns the 0-based index of the item; thus, if ADate matches the first item in the list, IndexOf returns 0, if ADate is the second item, IndexOf returns 1, and so on. If the item does not have a match in the list, IndexOf returns -1.


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page