Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids and refresh()
Message
From
10/05/1998 02:32:45
 
 
To
08/05/1998 03:03:52
Quinn Mayo
Quantified Pty Ltd
Melbourne, Australia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00097929
Message ID:
00098345
Views:
36
Hi Quinn ---

>The current statment we are using is as follows
>
>select * from(hf) where rn=tbrdesktop.spinner1.value noconsole into table hftemp
>
>hf being the database selected by a combo
>
>We are then using the hftemp database as the record source in the grid. The problem with all that is when we issue thisform.grid1.recordsource="hftemp", to refresh the grid, all of our width settings for the grid are ignored.
>

Works for me :)

I assume "hf" is a public variable that ends up containing a table name?

OK.....try this instead: In your database, do....

CREATE VIEW gridvue AS SELECT * FROM (hf) WHERE rn=?tbrdesktop.spinner1.value

Set the recordsource to "gridvue"

Whenever any method could cause a change to the values, do a =REQUERY("gridvue")

Clearer now?

John
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform