General information
Category:
Forms & Form designer
Environment versions
Network:
Windows 2000 Server
Hello Randy,
are you also debugging during load? Then pageframe and grid should not be there. You surely have put the recordsource creation in the load() because you know it comes before controls init() and these come bfore form.init().
I assume after all you have the problem, that the grid is empty when the form has started. So what cursor/table/alias are you creating in init and what is set as the grids recordsource and it's columns controlsources?
What should always work is: Set the recordsource to the alias and the columns controlsources to alias.field at designtime. if the alias is created and selected workarea through load, the grid should make no problems.
Maybe debug at the grid.init() and see what's there in the datasession then.
In later versions of VFP everything is quite easy through the .bindcontrols property of the form, that you can set to .f. at designtime and to .t. in eg form.init(), after you know the datasession has everything in it for the controls. Then controls bind to the data at that moment.
Bye, Olaf.
Previous
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