General information
Title:
Subclassing The DataEnvironment
When you create a form or a report with a DE, the CursorSource is
entered by VFP. In addition, it is RO at design time, but RW at
runtime. If you move the DBF to another directory the file can't
be found and VFP issues an error.
For the application I'm writing I have a setup screen which allows
the user to enter the directory that various files are found in.
I've been wrinting custom code in the BeforeOpenTables method to
change the CursorSource.
I'm wondering if it's possible to create a custome DataEnvironment
class which could be automatically used with each form or report
that I create.
...kt
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