Thanks Photogrammetry.GIU,

Am going down the path of writing my own save table menu item to replace the standard one. Have not tested if it will only be enabled when there are edits on any table as the real one does. Which brings up the point, there must be a trigger in MapInfo itself that says when any table becomes edited for this to happen, and when you save all tables, it becomes inactive again. Wonder if I could access this trigger?

r


On Tue, 06 Jul 2004 15:47:22 +0100, Photogrammetry GIU <[EMAIL PROTECTED]> wrote:


3 suggestions:

1. tableinfo has an attribute code of tab_info_edited which is logical.
Put a test in winchangedhandler (say) for that particular table. If it
has edits outstanding do something etc

2. Remove the save sub-menu from the file menu and replace it with your
own, which can do checks on the file being changed etc. You may have to
rewrite the whole of the file menu

3. Write a handler to take the data from the access datbase and put it
into a standard tab file, work on that, and then reload the data back
into the access database outside the main program


Robert Crossley <[EMAIL PROTECTED]> 06/07/2004 15:15:28 >>>
Hi All,

I wonder if anyone can suggest a way that I can detect when a user
saves a
table.  Some sort of trigger event that I am not sure of?

I have an application crashing when you:
1. Do some edits on one table
2. save the table
3. create a thematic map on another table joined to this table.

It doesn't crash if you don't save the table, or if you save the table
and
then pack it.
As usual, the data for these tables are in Access databases.

If I can detect when the table is saved, perhaps I can do something
simple
like close and reopen it to prevent the application errors.

TIA,
r





--

Robert Crossley
Agtrix P/L
9 Short St
PO Box 63
New Brighton 2483
Far Southern Queensland
AUSTRALIA

153.549004 E 28.517344 S

P: 02 6680 1309
F: New Connection
M: 0419 718 642
E: [EMAIL PROTECTED]
W: www.agtrix.com
W: www.wotzhere.com

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 12486



Reply via email to