Solved

Delphi won't refresh query

Posted on 1997-09-17
1
1,193 Views
Last Modified: 2008-03-17
I have a query shown by a DBGrid on a PageControl and the Grid won't refresh after updating on of the files. I have RequestLive=True and tried the methods query.refresh,dbgrid.refresh,pagecontrol.refresh and form.refresh what else is there to try?
0
Comment
Question by:lizzzard
1 Comment
 

Accepted Solution

by:
boabyte earned 50 total points
Comment Utility
One way to be completely sure a TQuery updates is to close then open it again. eg:

...
Query1.Close;
Query1.Open;
...

Takes a bit of time but might be your only solution
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now