Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Mike Yearwood
  Where is Mike Yearwood?
 Toronto
 Canada
 Mike Yearwood
 To: bryan wetton
  Where is bryan wetton?
 Morphett Vale
 Australia
 bryan wetton
 Tags
Subject: RE: Progress Bar in SQL SELECT
Thread ID: 210647 Message ID: 211507 # Views: 27 # Ratings: 0
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Tuesday, January 13, 2009 4:36:20 PM         
   


> Hi Mike,
>
> I have used the previously given FUNCTION SqlProgress(lbShowProgress) thus far with the result I want.
>
> I also want to try your OOP approach.
>
> I put the define code in the prg file that I run the 'Big' SELECT routine in.
>
> I also added the code as you suggested
>
> LOCAL m.loThermo
> m.loThermo = NEWOBJECT("cusSQLThermo","cusSQLThermo.VCX")
>
> SELECT ..... etc - my big select
>
> RELEASE m.loThermo
>
> However no object is created as seen in the debugger.
>
> I wonder about the '"cusSQLThermo.VCX")' in the NEWOBJECT statement.

I do not do what most do. Most make a vcx with many unrelated things in it. I wonder how does this thing relate to other things in a system. Since there is little benefit to arbitrarily combining things, I stopped long ago. Now, when I need something I just tell FoxPro to get it. Unfortunately the VCX cannot be ignored. I name the vcx the same as the class so I don't have to think about it at all. I just name things properly - which has to be done in any case, and I'm home free.



>
> Some things that are clear to experts leave others puzzled - Mea Culpa!
>
> Have you any clarification as to how to make the class work please.
>
>
> -Bryan

Wellll, I'm not sure whose fault it is. I expect all programmers should understand the code in the sample explains that this is supposed to be a new visual class based on the VFP custom class. It's easier to show the code this way than to attach a zipped vcx file. So start up your class designer and make a new class based on custom. Add the properties icoldsettalk etc, and make them protected. Copy the method code into the methods. Save the class as cussqlthermo into a vcx called cussqlthermo.

Mike Yearwood
Microsoft MVP Visual FoxPro 2008



We have enough youth. We need a fountain of smart!
There may be many ways to skin a cat, but there are very few right ways to do it.



COMPLETE THREAD
Progress Bar in SQL SELECT Posted by bryan wetton @ 1/7/2009 6:55:38 AM
RE: Progress Bar in SQL SELECT Posted by Glenn Villar @ 1/7/2009 7:20:11 AM
RE: Progress Bar in SQL SELECT Posted by Om Rajan @ 1/7/2009 11:00:59 AM
RE: Progress Bar in SQL SELECT Posted by Glenn Villar @ 1/8/2009 2:07:45 AM
RE: Progress Bar in SQL SELECT Posted by Mike Yearwood @ 1/9/2009 7:46:02 PM
RE: Progress Bar in SQL SELECT Posted by Glenn Villar @ 1/13/2009 5:59:23 AM
RE: Progress Bar in SQL SELECT Posted by Stefan Wuebbe @ 1/7/2009 10:02:34 AM
RE: Progress Bar in SQL SELECT Posted by Om Rajan @ 1/7/2009 11:16:59 AM
RE: Progress Bar in SQL SELECT Posted by Stefan Wuebbe @ 1/7/2009 12:53:59 PM
RE: Progress Bar in SQL SELECT Posted by Om Rajan @ 1/7/2009 1:06:24 PM
RE: Progress Bar in SQL SELECT Posted by Russell Hill @ 1/7/2009 12:25:03 PM
RE: Progress Bar in SQL SELECT Posted by surinder singh @ 1/7/2009 12:29:40 PM
RE: Progress Bar in SQL SELECT Posted by Russell Hill @ 1/7/2009 12:34:29 PM
RE: Progress Bar in SQL SELECT Posted by Mike Yearwood @ 1/8/2009 3:53:15 PM
RE: Progress Bar in SQL SELECT Posted by bryan wetton @ 1/10/2009 4:06:00 AM
RE: Progress Bar in SQL SELECT Posted by Mike Yearwood @ 1/13/2009 4:36:20 PM