?
Solved

Problem with DisableControls...

Posted on 1998-09-02
2
Medium Priority
?
151 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month8 days, 22 hours left to enroll

764 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