Skip to content

Find_Init - DataList_

Initializes a list for a Find in a direction (up or down), reads the record, and prepares for the next Find_Next operation

Type: Procedure

Parameters

Parameter Type Description
Dir Integer Find direction

Syntax

Procedure Find_Init Integer Dir

Call Example

Send Find_Init Dir

Description

Find_Init initializes a list for a Find in a direction (up or down), reads the record (does not update the DD) and it is used to prepare everything (constraints, etc.) so that a Find_Next operation will find at the start/bottom and find in the proper direction. This is complicated by the ability to reverse the direction of a find (so top becomes bottom and bottom becomes top). This is all done outside of the DD (the DD's current record is never changed) and is used to populate a dbGrid or a dbList.

This method contains special optimization stuff that should rarely or never be augmented.