Icon GotoNearest Method

function GotoNearest: Boolean

Usage

Call the GotoNearest method to position the table on the row that is either the exact row specified by the current search values, returning True, or on the first row whose values exceed those specified, returning False. The search is peformed using the active index. The IndexName or IndexFieldNames property specifies the active index. Before calling the GotoNearest method, an application must specify the search values by calling the SetKey or EditKey methods, which put the table into the dsSetKey state. The application then uses the FieldByName method to populate the search values.
Image