DeeBo
May 15th, 2000, 11:59 PM
I have a class that is performing the dual duty of data provider and consumer. It was performing o.k. when I had it handling one data source ( a query accessing 2 tables). My main problem occurs when I added a second datamember to the class. When ever I request the class to change the datasource the GetDataMember Event which provides this change does not fire or fires with an empty string. ( I have ensured that I requesting a valid datameber from the event). It is my understanding that a call to a bound object will trigger the
GetDataMember Event (i.e. cboCourses.RowMember = "AllCourseInfo"),
however tracking through the debugger it passes this line without firing the event. To that end I have tried to force the event to fire by exposing the datamemberchanged method through a read only public Let, to no success. I am fairly certain I am doing the correct setps, I have doubled checked in the books I am consulting (Deborah Kurata's Doing Objet
with VB6 and Franco Belenas VB6 Programming) however there examples don't quite cover my problem.
Any Thoughts????
GetDataMember Event (i.e. cboCourses.RowMember = "AllCourseInfo"),
however tracking through the debugger it passes this line without firing the event. To that end I have tried to force the event to fire by exposing the datamemberchanged method through a read only public Let, to no success. I am fairly certain I am doing the correct setps, I have doubled checked in the books I am consulting (Deborah Kurata's Doing Objet
with VB6 and Franco Belenas VB6 Programming) however there examples don't quite cover my problem.
Any Thoughts????