Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reccount problem on GRID
Message
From
25/03/2012 19:15:36
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Reccount problem on GRID
Environment versions
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01539334
Message ID:
01539334
Views:
83
Hello comunity

i use this code to check if in my grid form i have more than 1 record:

OX is my form and OY is my grid on my form OX

Select ox
if ox.olorigem = 'CX90'

select oy
scan

if reccount() > 1
msg("Não pode ter mais que uma linha," + CHR(13) + ;
"pois trata-se de uma Letra")
return .F.
endif
endscan
endif
select ox

But, even i have only 1 record on my grid, the message display. Why ?

could someone give me some help.

Many thanks
Luis Santos
Next
Reply
Map
View

Click here to load this message in the networking platform