Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with variable reference to recordsource in grid
Message
From
17/02/2001 17:03:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Problems with variable reference to recordsource in grid
Miscellaneous
Thread ID:
00477049
Message ID:
00477049
Views:
57
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
Next
Reply
Map
View

Click here to load this message in the networking platform