mister sang/wang... Paul is absolutely correct. excuse my assumption, but i take it you're new (or recently unpracticed) in programming.
MapInfo thus far has no real object model, basically meaning you can't reference it directly (without a billion lines of code). you can only make a reference to what it was, then check that it is still what it was after you ask it to do something. look at it this way. by setting a variable, it is like taking a photograph of your green car. if you then paint your car black, but whenever you show your car off to other people you use the photo instead of the car itself, whoever sees it will obviously assume you have a green car. the whole idea behind Object Oriented Languages is the ability to set a reference to the actual object. essentially it is just meant to take some of the grunt werk out of programming, because, let's face it, programming can be dreadfully dull. so if real-life was an Object Oriented Werld, we'ed show off a picture of our car (or a property of it, like it's wheels, extractors, etc...) yet the person viewing it would be transported instantly to wherever that object is to see it for themself. even when talking in programs and memory, seeing is believing. ash -----Original Message----- From: CRISP, Paul -Syntegra UK [mailto:[EMAIL PROTECTED]] Sent: Friday, 29 November 2002 8:04 PM To: 'Sang Wang'; [EMAIL PROTECTED] Subject: RE: MI-L To get position of user-moved object Sang You need to reference the row in the table, not your variable. The variable hasn't changed. MapInfo doesn't have an 'object model' for map features - once the value has been passed into the table using 'insert' then the variable no longer has any sort of handle on it. To get the row in the table the user has just moved make sure they use a custom tool so you can getone of the 'commandinfo' return values, or use SelectionInfo statements. HTH Paul Crisp Syntegra Innovation Place Delta Bank Road Newcastle NE11 9DJ Tel 0191 461 4522 Fax 0191 460 1987 -----Original Message----- From: Sang Wang [mailto:[EMAIL PROTECTED]] Sent: 29 November 2002 00:33 To: [EMAIL PROTECTED] Subject: MI-L To get position of user-moved object I'm using integrated mapping and VC++. Several point objects are created into variables, and then inserted to a table. The objects are designed to be able to be moved by selecting and dragging in the map window. Now I found that when you try to get the object position by calling ObjectGeography and referenceing the variable, the new position after dragging is not reflected. How can the variable be updated to represent the moved object? Thank you. Wang Sang [EMAIL PROTECTED] GVU Center, College of Computing, Georgia Tech. Atlanta, Georgia 30332 _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 4328 ******************************************************************** This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.syntegra.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: 4335
