Hi Nigel,

A few commetn that might solve your problem:

1. Allways remember to use Fetch ... before reading values from a
table/selection. MapInfo tends to loose track of the cursor inthe current
table.

2. It might also be a good idea to select the record(s) from your selection
into a names table:

Select * From Selection Into CUR__SELECTION NoSelect

HTH,

Peter Horsboll Moller
COWI A/S 

-----Original Message-----
From: Nigel Tidswell
To: [EMAIL PROTECTED]
Sent: 27-02-03 04:07
Subject: MI-L Unwanted Selection Changes 

Dear Listers,
 
I have a custom MBX app for editing records via dialogs.
 
After selecting an object from the map, a dialog is opened, with the
current values of feilds in the selection populated in controls on the
dialog.  The user can click a button on the main dialog which opens a
sub dialog to allow entry in more feilds of the same selection.
 
The problem is, if the subdialog is opened a second time without saving
the main dialog, values from another record in the table selected from,
are used to populate the sub dialog.  It appears that the selection
table changes for that subdialog, but when saving the main dialog, the
original selection is updated.
 
I'm running MI 7.0 with app compiled in MB 6.5.
 
Can someone relate to this, or am I just plain unlucky?
 
TIA
 
Nigel Tidswell
System Adminstrator, Works Asset
Napier City Council
New Zealand
 

######################################################################
Attention: 
This e-mail message and accompanying data may contain information 
that is confidential and subject to legal privilege. Any information
provided is given in good faith. However unless specifically stated
to the contrary, Napier City Council accepts no liability for the
content of this e-mail or for the consequences of any action taken on
the basis of the information provided, unless that information is
subsequently confirmed in writing. If you are not the intended
recipient,
you are notified that any use, dissemination, distribution or copying
of this message or data is prohibited. If you received this e-mail
message in error, please notify us immediately and erase all copies
of this message and attachments. Thank you.
######################################################################

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

Reply via email to