Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with variable reference to recordsource in grid
Message
De
17/02/2001 17:03:50
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Problems with variable reference to recordsource in grid
Divers
Thread ID:
00477049
Message ID:
00477049
Vues:
56
I am attempting to make my grid more generic and accept any recordsource. The grid is inside a container. (The container/grid and other controls are a class in my library) I would like to have the recordsource for the grid be specified by setting a property of the container. Then all other controls, in the container and the grid as well, can reference that property value. But I am having problems. I don't know when the record source is evaluated.
Say for example that the container has the value: cursurques
Dumb question: How does VFP evaluate whether a value in a property is character or numeric or a variable itself ? Shouldn't =somvar evalutate the variable,
whereas something like cursurques evaluates to the string cursurques ?

What value should go in my container property , for a table or cursor alias ?

What value should go in the recordsource property for the grid, ie. how do I reference the cursor or table alias in the container property ?

If I change the value in the container property at runtime, when/how will the recordsource property know when to reevaluate recordsource property of the grid ?

TIA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform