Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I evaluate if a database is empty
Message
From
13/06/1998 17:11:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
12/06/1998 11:05:57
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00107610
Message ID:
00107935
Views:
34
>I am creating a new dbf file based upon filters used each time a user wishes to print a report. However, I need to evaluate if the database is empty so that I can return an error message and gracefully close down that part of the program and return the user back to the filter option dialogue screen.
>
>My main question is how can I evaluate whether a dbf table has any data or none at all and include this command in an IF..ENDIF statement.
>
>Can anyone help me please....
>
>Thanks
>
>Brendan

locate
if found()
* you got records
else
* no you don't
endif

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform