Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If a grid has been populated
Message
From
06/08/2003 07:53:46
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00817215
Message ID:
00817239
Views:
14
Hi Neil

>I would like to test if a grid has been populated programmatically.
>IF empty(thisform.pageframe1.page1.grid1.RecordSource="")
> MESSAGEBOX("There are no records in the grid to filter on!")
> RETURN
>ENDIF
>

How about something like this...
lcAlias = thisform.pageframe1.page1.grid1.RecordSource
IF NOT EMPTY( lcAlias ) AND USED( lcAlias )
  IF RECCOUNT( lcAlias ) < 1
    MESSAGEBOX("There are no records in the grid to filter on!")
    RETURN
  ENDIF
ENDIF
----
Regards
Andy Kramek
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform