Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How i know if my table have records
Message
From
28/05/1997 15:26:40
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
28/05/1997 14:24:15
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brazil
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00033885
Message ID:
00033902
Views:
70
>Hello!
>
>I would like to know if there´s any command or function to vfp says me if my table have records
>if it´s empty
>
>thanks
>Anderson Girardi

Try using the RECCOUNT() function.

Example:
IF RECCOUNT('mytable') = 0
WAIT WINDOW "My table has no records.' NOWAIT
ELSE
WAIT WINDOW "My table has records.' NOWAIT
ENDIF

Jerryt
Previous
Reply
Map
View

Click here to load this message in the networking platform