🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.database
1 messages
1 total messages Started by mph005 Fri, 11 Aug 2006 21:40
Refresh dataset in owner form from a multiple-instance form
#145
Author: mph005
Date: Fri, 11 Aug 2006 21:40
24 lines
2068 bytes
Ok, been driving myself crazy on this one for a few days. I'm fairly
new to the Delphi/Pascal language, so be kind.

Here's my situation:

I have a main form that has a DBGrid of Items (we'll call this Form1).
On doubleclick, a new form (Form2) is opened to edit a specific record
(item). There can be multiple-instances of Form2 (user can edit
multiple items at once).

On this new form, there is another DBGrid with some Item Prices. Again,
on double-click, a new form (Form3) is created to edit the item price.

Once I have finished editing my item price (on Form3), how do I access
the specific instance of Form2 to call a tblPrice.Refresh?

Right now I have a Form2.tblPrice.Refresh on my Form3 close. This works
OK, until there is more than 1 instance of Form2 open. Then the DBGrid
just stops updating. I know I need to specify the instance of the form
that called the Form3, but have no idea how.

Any Help?
Thanks
Michael
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads