Thanks again Peter - I managed to sort it out, pretty much as you first
suggested - I used an alias and just got the id from the base table rowid field
thus:
If SelectionInfo(SEL_INFO_NROWS) > 0 Then
aSelName = SelectionInfo(SEL_INFO_SELNAME) 'eg "Query1"
gs_theselTable = SelectionInfo(SEL_INFO_TABLENAME) 'the base table
'Note (gs_theseltable)
Else
Note("The selection is now 0")
End If
'This next line will cause an error if the tolerance has been changed and 'poly
not reselected - due to selchangedhandler
'gi_myrowid = commandInfo(cmd_info_rowid)
'This is the way to do it!
selection_colalias = gs_theseltable & ".ROWID"
gi_myrowid =selection_colalias
All the best and many thanks again :-)
Nicki
-----Original Message-----
From: Peter Horsbøll Møller [mailto:[EMAIL PROTECTED]
Sent: 31 August 2006 09:27
To: Nicki Cozens
Subject: RE: Help with commandinfo(CMD_INFO_ROWID) after a dialog is called
please
Nicki,
You are most welcome.
I know from myself that you sometimes can do things in the most fantastic ways,
only to 2 weeks later discover that it could have been done a lot simpler. Keep
on using MapBasic and you end up knowing you way around it - and still learn
new things ;-)
Peter Horsbøll Møller
GIS Developer, MTM
Geographical Information & IT
COWI A/S
Odensevej 95
DK-5260 Odense S.
Denmark
Tel +45 6311 4900
Direct +45 6311 4908
Mob +45 5156 1045
Fax +45 6311 4949
E-mail [EMAIL PROTECTED]
http://www.cowi.dk/gis
"For enden af regnbuen..." - hvordan kommer man dertil og er det overhovedet
muligt?
Læs mere om årets MapInfo konference på www.cowi.dk/mapinfokonference
_______________________________________________________________________
Leicestershire County Council - rated a 'four-star' council by the Audit
Commission
_______________________________________________________________________
This e-mail and any files transmitted with it are confidential. If you are not
the intended recipient, any reading, printing, storage, disclosure, copying or
any other action taken in respect of this e-mail is prohibited and may be
unlawful. If you are not the intended recipient, please notify the sender
immediately by using the reply function and then permanently delete what you
have received.
Incoming and outgoing e-mail messages are routinely monitored for compliance
with Leicestershire County Council's policy on the use of electronic
communications. The contents of e-mails may have to be disclosed to a request
under the Data Protection Act 1998 and the Freedom of Information Act 2000.
The views expressed by the author may not necessarily reflect the views or
policies of the Leicestershire County Council.
Attachments to e-mail messages may contain viruses that may damage your system.
Whilst Leicestershire County Council has taken every reasonable precaution to
minimise this risk, we cannot accept any liability for any damage which you
sustain as a result of these factors. You are advised to carry out your own
virus checks before opening any attachment.
_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l