Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids and refresh()
Message
 
To
08/05/1998 01:58:21
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00097929
Message ID:
00097951
Views:
19
John,
How do you requery the view? Please give an example in code.
I am having trouble with this and so far I have created the view again (with a different whereclause), set the grid's recordsource to the view and 'reformated' the headers, columnwidth and so on. It works but it seems to me that a single command like requery would be faster (if the grid keeps its layout).

/Pierre Unge, Sweden


>Quinn....
>
>When the source is an SQL query, recreating the query when the form is live is not good. Try creating a parameterized view in your database, example:
>
>SELECT * FROM client WHERE name = ?cName
>
>cName = variable holding a name that may change.
>
>Then tie the grid to the view. When you REQUERY the view, refresh the grid. Problem resolved.
>
>
>
>>Hi,
>>When I use formname.grid1.refresh() after recreating the database using select-sql statements, it turns the grid all white and blank.
>>What are we doing wrong????
>>
>>Please help
>>~Quinn
------------- if you cut here, you'll probably destroy your monitor ------------
Previous
Reply
Map
View

Click here to load this message in the networking platform