Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Om Rajan
  Where is Om Rajan?
 Jalandhar
 India
 Om Rajan
 To: Glen Villar
  Where is Glen Villar?
 Cabanatuan
 Philippines
 Glen Villar
 Tags
Subject: RE: Progress Bar in SQL SELECT
Thread ID: 210647 Message ID: 210664 # Views: 54 # Ratings: 0
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Wednesday, January 07, 2009 11:00:59 AM         
   


Hi Glenn
thats a good idea, but do with or without procedure for query.
c the time difference in both query

Select * From Products Into Cursor NewProducts

Select *, This.MoveBar(m.lnCount,Recno()) From Products Into Cursor NewProducts


> > A while ago I saw a Progress Bar when I was creating a new table via SQL using a Select .. FROM ... INTO routine.
>
> Hi Bryan!
>
> If the table or a cursor is created using SELECT... FROM ... INTO, you can somehow do your own custom bar to show its progress.
>
>
> Local loObjForm
> loObjForm = Createobject('SampleForm')
> loObjForm.Show(1)
> 
> Define Class SampleForm As Form
>    AutoCenter = .T.
>    Height = 100
>    Width = 400
> 
>    Add Object Container1 As Container With Left = 10, ;
>       WIDTH = 380, SpecialEffect = 1, Top = 20, Height = 15
> 
>    Add Object Shape1 As Shape With Left = 10, Width = 0, ;
>       TOP = 20, Height = 14, FillColor = Rgb(111,111,111), FillStyle = 0
> 
>    Procedure Load
>       *-- Opens products table from VFP9 Home Dir, if the said table doesn't exist please modify
>       Use 'c:\PROGRAM FILES\microsoft VISUAL FOXPRO 9\samples\DATA\products' In 0
>    Endproc
> 
>    Procedure Activate
>       Local lnCount
>       lnCount = Reccount('Products')
>       Select *, This.MoveBar(m.lnCount,Recno()) From Products Into Cursor NewProducts
>       Browse Normal
>    Endproc
> 
>    Procedure MoveBar
>       Lparameters lnParam1, lnParam2
>       Thisform.Shape1.Width = Thisform.Container1.Width * (lnParam2/lnParam1)
>       Wait '' Timeout .1 && Added just to slow down its growth so we can see, better removed to speed up the process
>    Endproc
> Enddefine
> 

>
> (coffee)
> DeepLogic Computers & Software / Acer Lending Investor



Always Fox Ahead



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