Icon EditKey Method

procedure EditKey


Call the EditKey method to put the table in dsSetKey state while preserving the current contents of the current search key buffer. To set the current search values, you can use the IndexFields property to iterate over the fields used by the active index. The IndexName or IndexFieldNames property specifies the active index. Once the search values are set, you can then use the GotoKey or GotoNearest method to perform the actual search.

EditKey is especially useful when performing multiple searches where only one or two field values among many change between each search.