Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Way to find out if filter results in records
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01515632
Message ID:
01515633
Views:
67
>Hi everybody,
>
>I have two grids on the form one being related to another. When I select record in the top grid, I filter records in the bottom grid using SET FILTER command.
>
>I also fire a ValidateRow method in each of the grids.
>
>My problem is that I don't want to run validation if nothing is selected in the bottom (and upper) grids.
>
>How can I check (preferably without moving record pointer) if I have records satisfying filter condition or not?
>
>Thanks in advance.

If I understood correctly:
local laCount(1)
select count(*) from childTable where condition matching filter command into array laCount

if laCount(1) > 0 then there are matching records
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform