I'm testing different Applications and it turns out that some applications are using VSFlexGrid 7.0 (OLEDB) and others are using VSFlexGrid 7.0 (Light). I have created functions to get rows, get header rows, get columns, find hidden rows, etc. But if I use a Shared Module, of course I need to have both dll's in my references. So I need to switch the order of the Light and OLEDB depending on the application. Also, if you save the order it doesn't always keep that order (this is anoying). I finally decided to kept the one that is on top in the Shared Modules and create a new module to handle the OLEDB and have the name of the functions a little different.
Here is my problem. I have another module that is calling function as well. Even when I put the '$TPInclude "mduActiveX_OLEDB" at the top of the module it still tells me that function hasn't been defined. I also tried to do the include inside the function.
1. Can you not put includes inside of modules.
2. Why can't you save the order of the reference files (as I said earlier this is annoying).
3. Is there a better way to get around this that I haven't thought of.
It is amazing how after a weekend you can figure out your problems. Turns out I had the function in the other module as a private instead of a public function (no wonder the the other mdoules couldn't see it [img]/images/graemlins/smile.gif[/img]). So it is soved, but if anybody has any answers about the saving of the reference files (and there order), I would love to hear the answer.
I think if your functions like get rows() etc use late binding, it won't really matter which version of the grid you are using. In my case, i just don't care about the different versions of a single control. Late binding is my solution.