Fellow VFPers, I can't for the life of me remember how to reference the Default DataEnvironment of a form at runtime.
What I am doing is creating a SQL manager object in the BeforeOpenTables() of a DE and I want to write back into the data environment so as to update the DataSourceType and Datasource properties with the SQL handle and "ODBC" type values. I know I have done this before way back when and it isn't as obvious as you would think as the form doesn't have a dataenvironment property associated with it at runtime, only a datasessionId. Ideas welcome! Dave _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/18725b8cd2d5d247873a2baf401d4ab2598f3...@ex2010-a-fpl.fpl.LOCAL ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.