I knew it was a simple question, but thanks to Doug I now have the answer. Simply use Commandinfo with CMD_INFO_ROWID. This returns the rowid of the selection (as long as only one thing is selected). Thanks to all who responded. Justin White GIS Analyst Ipswich City Council Phone: +07 38106704 Fax: +07 38122495 [EMAIL PROTECTED] ********************************************************************** This e-mail contains information that is intended for use only by the addressee. If you have received this e-mail in error, you are advised that copying, distributing, disclosing or otherwise acting in reliance on this e-mail is expressly prohibited. Please advise the original sender by REPLY email that you have received this email in error. Thank you ********************************************************************** _______________________________________________________________________ List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MapInfo-L" in the message body.