Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recordsource vs. grid
Message
 
À
25/08/2000 15:02:38
Bruce Covey
Home Depot Television
Atlanta, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00409377
Message ID:
00409380
Vues:
21
Your problem is that when you do the INTO CURSOR, what's really happening is that it's first deleting the old cursor, then creating the new one, thus for a moment the recordsource doesn't exist. What I've done in the past is set all the recordsources to '' (nothing), then do the INTO CURSOR, then set all the recordsources back. You might want to make a method for it, I think I even made a grid subclass with it in it at one point.

>In a pageframe on a form, I build/run a query on one page and then enable another page to display the results of the query in a grid. In order for the grid object to instantiate properly during the LOAD of the form, I had to CREATE CURSOR in the DE of the form because the alias "search" doesn't exist yet.This cursor has the same structure as the results of the query. When I build/run the query the results go ...INTO CURSOR search. However, when I am tossed to the results page, the grid is completely blank. If I understand it correctly, the query will overwrite the orginal cursor search, and appears to be doing so. I tried to issue a ...recordsource=search in the ACTIVATE of the results page, but got a variable error. Is it possible to change the recordsource after the object has been instantiated ?
>
>Any help is appreciated
ICQ 10556 (ya), 254117
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform