Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Problem with DisableControls...

Posted on 1998-09-02
2
Medium Priority
?
153 Views
Last Modified: 2010-04-04
Hi!

I have two tables (tblScale and tblScaleCapacity). tblScaleCapacity has tblScale as it's master, connected through two fields. This works fine, tblScaleCapacity is updated if I change record in tblScale, BUT tblScaleCapacity is not updated when I've issued a tblScale.DisableControls call before I move the record-pointer.

Is there anyway I can override this? I want tblScaleCapacity to follow tblScale even if the controls are disabled...

//Daniel
(using Delphi2 and W95)
0
Comment
Question by:Dippen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Expert Comment

by:BlackMan
ID: 1338449
That is the expected behaviour of Master/Detail relationship. If you call DisableControls, the detail will become out of sync with the master.
0
 
LVL 4

Accepted Solution

by:
binkzz earned 150 total points
ID: 1338450
Change the tblScale OnChange procedure to call or make a TblScaleCapacity update.

Make the update so that if it still doesn't update properly, that the procedure enables the control, changes the data, and then disables the controls again. This should happen within a tenth of a second, and therefore the data shan't be in danger ;)

Hope this helps,

Binkzz
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

604 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