Kofax DM API Manual do Utilizador Página 218

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 528
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 217
198 CHAPTER 4
GetMetaRowsFound
GetMetaRowsFound
Use this method to identify the total number of rows of metadata that
are returned when your search or lookup executes.
Syntax
PCDLookup.GetMetaRowsFound()
PCDRecentDoc.GetMetaRowsFound()
PCDSearch.GetMetaRowsFound()
Returns
Returns a long integer that contains the number of rows of metadata in
the result set that your search or lookup returned.
Usage
You can use the row count value that GetMetaRowsFound returns in a
For 1 to TotalRows” loop to iterate through the metadata result
set. While use of the number returned by GetMetaRowsFound is
sometimes appropriate, there are performance considerations. Calling
this method causes the server to wait until the search has completely
finished retrieving all data from the database. The server will not return
control to your application until all processing of the search or lookup
is complete.
Those performance considerations suggest that it may be preferable to
use an alternate method of iterating through the metadata result set.
For example, instead of a “
For” loop, you can use the SetRow method
to position the pointer to row zero, and then use a “
While
YourObj.
NextRow” loop to iterate through the metadata result set.
Using this procedure, the server retrieves large metadata result sets in
smaller “chunks” according to parameters set by the SetChunkFactor
method.
Example
The GetMetaRowsFound method is used in the Example in the
PCDLookup discussion in Chapter 3.
Vista de página 217
1 2 ... 213 214 215 216 217 218 219 220 221 222 223 ... 527 528

Comentários a estes Manuais

Sem comentários