Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How will I ever get my app ported to SQL Server?
Message
 
 
To
25/08/2008 09:05:12
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01338696
Message ID:
01341502
Views:
10
Hi Matt,

I'm afraid I can not be of much help. Last time I worked with CAs was more than a year ago. I know that I created couple of CAs using Mark's tool, then I modified the base class to add some extra methods (I sort of simulated MereMortals DataAccess object and coded them directly in base CA class).

Then I created an array at my base form class to hold all CAs references. I programmatically added them in form's Load method.
I don't remember ever using DE of the form except for cases working with someone's forms. Last couple of years I always used class based forms anyway.

So hopefully someone else can share the ideas as well here.

>>I personally use slighlty different approach, I create CAs using Mark's builder, then add them in Form's Load via code and call CursorFill when I'm ready.
>
>
>Ok.. My first stumbling block:
>
>(I’m going to refer to CA’s built with the Mark McCasland VFP9 CA tool as “mmCAs” as opposed to native or hand-built ones as just CAs )
>
>So far, just to get started with everything, I have manually added mmCAs to a forms DataEnvirionment using the VFP IDE. Long term, I may add them programmatically, but for now, this was just a quick way to get started.
>
>Apparently, it is a No-No to work on an instance of a mmCA using the Builder tool after you add the to the form DE, because I see that it is creating Init() and AutoOpen() methods in the local instance of the mmCA classes, and that prevents the parent class Init() and AutoOpen() methods from running, which obviously contain some important code that needs to be run when initializing the mmCA.
>
>If I do use the builder, and it adds local code to those methods, I can right-click on the methods and pick “Reset to Default” and the class will work fine, but that is bound to lead to problems, as I will be mainting as many as 12-15 mmCA’s in each of my forms, and I may have about 20-30 forms that I need to convert.
>
>So, please confirm, is it a No-No to work on the mmCAs with the Builder within the form DE?
>
>What about using the Builder on the individual mmCA class in it’s class library (outside of the form DE)? Is that ok?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform