General information
Category:
Forms & Form designer
Title:
Problems with variable reference to recordsource in grid
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only