|
To get the TableName use the SelectionInfo
method:
1� Ensure the user has selected something:
SelectionInfo (SEL_INFO_NROWS) > 0
2� Get the table name:
SelectionInfo(SEL_INFO_TABLENAME)
To get the rowid of the element in the source
table, I think it could be possible getting an identifier of the object, making
a query over the source table asking about the rowid. If you have an only one
element selected and ask about selection.rowid, you'll allways get a
"1".
Best regards.
----- Original Message -----
From: "Snashall, Scott" <[EMAIL PROTECTED]>
To: "Mapinfo Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 18, 2002 12:31
AM
Subject: MI-L Tablename and rowid from user
clicking within mapbasic Hello all, I would like to determine the tablename and rowid based on the user selecting an object via the mouse pointer. would anyone have any examples on how to do this within mapbasic. thanks Scott --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 3633 |
--------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 3638
