Consultor Eletrônico



Kbase P12648: Is it possible to have a dynamic FIND
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   8/25/2004
Status: Unverified

GOAL:

Is it possible to have a dynamic FIND

GOAL:

Implement dynamic FIND

FACT(s) (Environment):

Progress 9.1D

FIX:


In version 9.1D, new buffer object methods and attribute that would provide stand-alone FIND support for dynamic buffers have been implemented:
  Buf-hdl:FIND-UNIQUE
  Buf-hdl:AMBIGUOUS
  Buf-hdl:FIND-CURRENT
  Buf-hdl:FIND-FIRST
  Buf-hdl:FIND-LAST

These methods and attribute allow stand-alone finding on a dynamic buffer object. They complement the already existing Buf-hdl:FIND-BY-ROWID.

Example:
=======
 DEFINE VARIABLE bh AS HANDLE.
 
 bh = BUFFER customer:HANDLE.
 bh:FIND-LAST("where balance > 0 use-index name").
 MESSAGE NAME.
 bh:FIND-LAST("where cust-num > 5 and address < 'z'").
 MESSAGE NAME.