Display progress of Loop

I have a program that reads a database containing names. There are 200 records. I read the records at about one per second interval. I want to see the name and count as it is read. I placed two Labels on the display, one for the Name and one for the counter.  The Labels are in the Loop. The Label do not display until the last record is read and the last Name and total count is displayed.
How can I resolve this problem and display the progress of the Loop?
0
Mervin
1/27/2015 1:01:01 AM
embarcadero.delphi.ado 597 articles. 1 followers. Follow

1 Replies
479 Views

Similar Articles

[PageSpeed] 27

> {quote:title=Mervin Norton wrote:}{quote}
> I have a program that reads a database containing names. There are 200 records. I read the records at about one per second interval. I want to see the name and count as it is read. I placed two Labels on the display, one for the Name and one for the counter.  The Labels are in the Loop. The Label do not display until the last record is read and the last Name and total count is displayed.
> How can I resolve this problem and display the progress of the Loop?

simple way 
{code}
  for I := 1 to 100 do
    begin
       readDBandSetLabels  ;
       APPLICATION.PROCESSMESSAGES;
   end;
{code}




--
Linden
"Mango" was Cool but "Wasabi" was Hotter but remember it's all in the "source"
0
Linden
1/27/2015 1:01:01 AM
Reply:

Similar Artilces:

Convert Delphi 5 ADO App to Delphi 2007 ADO.NET
I have an appliction tha that is writen in Delphi 5 with ADOConnetion, ADOTable, and ADOQuery components. I need to upgrade to Delphi 2007 and use ADO.NET. I have the program building in with Delphi 2007. Is there anything I need to do to convert the ADO to ADO.NET? > I need to upgrade to Delphi 2007 and use ADO.NET. Why ? -- With best regards, Dmitry Arefiev AnyDAC (www.anydac.com) - Oracle, MS SQL Server, IBM DB2, MySQL, Firebird, Interbase, PostgreSQL, Sybase ASA, SQLite, MS Access, DBX, ODBC, InMem - universal high-speed native data access engine Reasons for ...

Delphi 6 to Delphi 2010 upgrade and ADO
We have an application written in Delphi 6 Professional that uses ADO to access databases servers that may be on other PCs in our network. We want to move to Delphi 2010 but can't decide if we need Professional or Enterprise. 2010 Pro has dbGO - will this give us the same functionality as the ADO components we use in Delphi 6 Pro? Thanks, Keith > 2010 Pro has dbGO - will this give us the same functionality as the > ADO components we use in Delphi 6 Pro? Yes. > {quote:title=Joachim Uersfeld wrote:}{quote} > > 2010 Pro has dbGO - will this give us the same func...

ASA7 ADO & Delphi ADO ?? Anyone is using it?
Any comments? Is it working? Any Problems? Thanks Hi, PR <noemail@no.com> schrieb in im Newsbeitrag: BoTThJaq$GA.89@forums.sybase.com... > Any comments? Is it working? Any Problems? I tried to connect to ASA7 via the new OLE DB - Provider and ADOExpress from Delphi 5.01. No chance. Only the error message 'Invalid Enum Value'. About the new provider I haven't heard anything good until now... Regards Frank Frank, I've experienced the same problem with the ASA 7 OLEDB Provider. I'm not sure if this is a bug in the AsaProvider or Delp...

IE7 Displaying Flash Content and Firefox not displaying Flash Content when loading using ADO.NET
Hi I have an app thats built in ASP.NET VB, im using ADO.NET to load content into a flash OBJECT/EMBED tag dynamically using a Literal control to populate the src. For some reason IE7 works great but when i open it up in FIREFOX it does not load the Flash, i just have a blank screen.   ASPX CODEProtected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Session("UserId") = User.Identity.NametxtUserID.Text = Session("UserId")Dim UserId As Guid = Membership.GetUser.ProviderUserKey() txtUserID2.Text = UserId.ToString txtUserID3....

Looping through stored procedure inside another stored procedure and displaying the category and then displaying 1 item in each category
I used to do this with classic asp but I'm not sure how to do it with .net.Basically I would take a table of Categories, Then I would loop through those.  Within each loop I would call another stored procedure to get each item in that Category. I'll try to explain, Lets say category 2 has a player Reggie Bush and a player Drew Brees, and category 5 has Michael Vick, but the other categories have no items.Just for an example.. Category Table: ID   Category1      Saints2      Falcons3  &...

superreview requested: [Bug 253730] unable to display number of pages printing from chrome : [Attachment 155818] adds page num display to progress dialog
Robert O'Callahan <roc@ocallahan.org> has asked neil@parkwaycc.co.uk <neil.parkwaycc.co.uk@myrealbox.com> for superreview: Bug 253730: unable to display number of pages printing from chrome http://bugzilla.mozilla.org/show_bug.cgi?id=253730 Attachment 155818: adds page num display to progress dialog http://bugzilla.mozilla.org/attachment.cgi?id=155818&action=edit ...

superreview canceled: [Bug 253730] unable to display number of pages printing from chrome : [Attachment 155818] adds page num display to progress dialog
Robert O'Callahan (:roc) (Mozilla Corporation) <roc@ocallahan.org> has canceled Robert O'Callahan (:roc) (Mozilla Corporation) <roc@ocallahan.org>'s request for superreview: Bug 253730: unable to display number of pages printing from chrome https://bugzilla.mozilla.org/show_bug.cgi?id=253730 Attachment 155818: adds page num display to progress dialog https://bugzilla.mozilla.org/attachment.cgi?id=155818&action=edit ...

How to loop through and display data
Hi all, Could any one please help in this case?   A table has a column by name UserFields, which is of XML data type and for which a schema has been defined. The end user using an application can enter any number of custom fields and save it. For example, the value in the "UserFields" column will be <CustomData> <AttrValue name="Field1">Value_field1</AttrValue> <AttrValue name="Field2">Value_field2</AttrValue> <AttrValue name="Field3">Value_field3</AttrValue> <AttrValue name="...

Display messages in a loop
Please review the code below Dim rcvd As Integer Dim ord As Integer Dim drItem As DataGridItem For Each drItem In Detailsgrid.Items Dim txtitem As Integer = drItem.Cells(0).Text Dim txtrcvd As TextBox = CType(drItem.FindControl("item_received"), TextBox) rcvd = txtrcvd.Text Dim txtord As TextBox = CType(drItem.FindControl("textbox2"), TextBox) ord = txtord.Text If rcvd > ord Then lbl_check.Visible = True lbl...

How to display Progress Bar?
I would like to display progress bar in my ascx control while it is executing a time consuming method in a custom assembly. Some additional text status message would be cool too. I am not sure if I need to change the assembly or send some kind of message to the ascx control. Will my whole page need to refresh? Should I look into Atlas for solution? Wonder what the best practise would be in this case.    I heard there is Response.Flash methodRafal Zikbay.com - Free Classifieds (Search Over 5 mln jobs on Zikbay.com) DNN Direct There are a number of ways. When a user...

Client progress display
Do any of you know how to retrieve the ResultSets asychronously on the client site. I am actually trying to display the retrieve progress on a progress meter. Thanks in advance You'd have to somehow spawn a thread. What kind of client? Dave Wolf Internet Applications Division "Adnan Senyurt" <copilot@superonline.com> wrote in message news:396B4FCB.F3B4425C@superonline.com... > Do any of you know how to retrieve the ResultSets asychronously on the > client site. > I am actually trying to display the retrieve progress on a progress > meter. ...

Display Progress bar
Hi all I PB 9.00 How can i display a progress bar while run FileCopy(ls_FileName) command with large size files. Thanks in advance.. Regards Shivkumar K Unless there is an api call to get the status of the file copy, why don't you use filelength() to get your max, and then fileread() the existing and filewrite() to the new in a controlled loop? That way you know how many iterations of the loop you must run and thus achieve an accurate progress bar. The downside is this whole process might be slower My .02 Greg "Shivkumar K" <shiv@cgvakindia.c...

timer and displaying progress
is there a way to display that the page is being updated when the timer fires.  i tried using the update progress control but when i have it uncommented i get a javascript error of Sys.ArgumentNullException: Value cannot be null.Paramert name: postBackElement  if i comment the control out the timer fires and the page or portion is updated.  here's how i have the updatepanel set up.  if someone has a way to display progress because there's a possible bug with this yet please let me know.  1 <asp:UpdatePanel ID="ProbabilityPanel" r...

display colors in a for loop
 hi i have tried a loop to display some text using for. the text displays but the color attribute wont working how to do thatthe code is  <% Dim i As Integer For i = 0 To 7%> <font size="<%=i %>" color=" <%=System.Drawing.Color.FromArgb(QBColor(i))%>"> hello world <br/></font> <%Next%> is this correct or i have to do something It is because Color.FromArgb creates a Color object, given a color value. What you need in your font tag is the color code in hexadecimal, e.g. #FF...

Web resources about - Display progress of Loop - embarcadero.delphi.ado


Emery County Progress - Emery County, Utah
Emery County Progress, Serving Emery County, Utah news since 1900

The Progress
Boro: Paving bid could be good news Friday, June 19, 2015 By Jeff Corcino Staff Writer Clearfield Borough received some potentially good news ...

March of Progress (album) - Wikipedia, the free encyclopedia
March of Progress is the ninth studio album (and sixteenth overall) by progressive metal band Threshold . It is the first studio album on which ...

WA bushfires: Esperance bushfire warning downgraded as firefighters make progress
A deadly bushfire burning in areas north of Esperance on WA's south coast is downgraded back to a watch and act.

Put your nose to your phone in the puzzler Progress to 100
If you are looking for a brand new puzzle game concept, then Progress to 100 is it. This innovative game will put you closer to your iPhone than ...

2017 Lincoln MKZ shows the new face of progress
Filed under: Design/Style , 2015 LA Auto Show , Lincoln , Sedan , Luxury Lincoln makes a plethora of upgrades to the refreshed 2017 MKZ including ...

Progress report on Jeanne Gang's notable projects
The current projects of Chicago architect Jeanne Gang span the gamut from skyscrapers to cultural centers to museums. Here is a Gang sampler. ...

Pfizer-Allergan talks progress: Sources
Deal talks between Pfizer and Allergan have progressed and an agreement may come as early as next week, sources told CNBC.

Rainbow Six Siege beta progress won't carry forward
Plus, Ubisoft confirms people who were in the closed beta will get to play 24 hours early.

Resources last updated: 11/25/2015 9:09:00 AM