dbpfind - Forum

Forum Navigation
You need to log in to create posts and topics.

dbpfind

Hi

In the Dbpro plugin
When using (dbpfind)
Is the number of items found stored in a variable?

@s7shanbe

Look at this special variable (you will have your own ID and your own table name)

[ID.Table.$RecCount]

Read more: https://neodbprohelp.visualneo.com/SpecialVariables.html

@vadim

with "[ID.Table.$RecCount]"

The number of Stored items is shown.

@s7shanbe

When the search filter is applied, this variable stores the number of records found that match the search condition.

@vadim

in "dbpquery" information is filtered and the number is displayed in $Reccount

but not in "dbpfind"

 

@s7shanbe

Yeah, I guess so.
You could try to filter before the search command and get the total number of records in the specified variable.

@s7shanbe

In the Dbpro plugin
When using (dbpfind)
Is the number of items found stored in a variable?

You might consider a subroutine that does this by ... following the dbpFind command with a series of dbpFindNext commands (inside a While/EndWhile block).

a) You will need to use dbpShowErrors "No"
b) [dbpError] will be null (i.e. "") until there are no more records to find
c) also, [yourDB.yourTable.$RecNum] will change with every new matching record; when no more matches, this value will not change

Vadim and s7shanbe have reacted to this post.
Vadims7shanbe