Hi Lars

Thanks for your attention.  I've solved the problem.  Your points
annotated below:  

-----Original Message-----
From: Lars V. Nielsen (GisPro) [mailto:[EMAIL PROTECTED] 
Sent: 09 June 2005 19:16
To: Terry McDonnell
Subject: Re: MI-L What's wrong with this code?

Hi Terry,

...
>Do you by any chance also have an opened table, a column in another
opened table, or a variable named "eastings" ?

No

>Have you tried to split your update into three statements, one for each
field, to see if it makes a difference ? Perhaps prompting a change by
swapping the order of updates ?

I've changed the order (originally Eastings were first) and it skips the
other 2 equations but baulks on Eastings - very puzzling.

>The entity "stop.eastings" referenced in your note$ puzzles me. Have
you fetched the relevant row (fetch rec gnRowID from STOP) before
issuing the note$ ?

Yes, I just didn't bother including that code.

>Your table names STOP may also conflict with the MapBasic statement
"stop", although it really ought to yield a totally different error
message.

The Stop table is used throughout the system.  It's only this code
that's got a problem.  Besides, isn't "Stop" just a directive to enter
debug mode?

-------------

>Normally in a SelChangedHandler it ought to be simplest to use (update)
the current selection. I presume that you're trying to update the
coordinate values caused by a visually moved point object ? How about
instead using:

>    Update Selection Set  Northings = CentroidY(OBJ),   Eastings =
CentroidX(OBJ),   Last_Udate = CurDate()

I've posted my solution in another reply to Christophe's contribution.
The problem was having first to store the OBJ in a var before using it
in an update.  I've always had to do this and I'm surprised that all
contributions, samples and examples from the List (including your own
below) have neglected this step.  Am I the only one who has to do this?

Anyway, thanks very much and I'd be interested to hear what you think on
the above paragraph.

Best wishes

Terry


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

Reply via email to