Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If a grid has been populated
Message
From
06/08/2003 11:14:21
 
 
To
06/08/2003 08:03:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00817215
Message ID:
00817335
Views:
13
>Hi Andy,
>
>IF NOT EMPTY( lcAlias ) && AND USED( lcAlias ) not need
>
>if a grid have a RecordSource, it is sure used.

But the point of the question was not whether the recordsource property was populated, but "Does the recordsource have any records?" Your solution merely ASSUMES that if it is there it has records.

Since the question implied that the recordsource was being populated programmatically, so there is no guarantee that the recordsource is:

[1] Populated with a valid reference to a Table, Cursor or View

[2] That the specified Table, Cursor or View is Open in the current Data Session

[3] That even if it is open, that it actually contains records

So I have to disagree with your assertion that the test is unnecessary!
----
Regards
Andy Kramek
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform