Mapbasic syntax to shutdown MapInfo Pro

328 views
Skip to first unread message

Hodgskiss, Matthew

unread,
May 31, 2007, 10:46:07 AM5/31/07
to mapi...@googlegroups.com
Hi,
 
Could anyone tell me the mapbasic code that could be used at the end of a workspace to shutdown mapinfo automatically?
 
Regards
 
Matt Hodgskiss
GIS / SNN Officer and LLPG Custodian
GIS Unit
Macclesfield Borough Council
Town Hall, Macclesfield, SK10 1DT
Tel: 01625 50(4671)
Fax: 01625 50(4675)
 
***********************************************************************************
The information in this Email and any attachments is personal to the
sender and the views of the author may not necessarily reflect those
of Macclesfield Borough Council. The information is strictly confidential
and is intended only for the named person or organisation to whom it is
addressed as it may contain privileged and confidential information. If
you are not the intended recipient do not copy, distribute or use this
Email, and please notify the sender. Please note that we cannot
guarantee that this message or any attachment is virus free or has not
been intercepted and amended.
***********************************************************************************

Campbell, Keith A

unread,
May 31, 2007, 11:09:03 AM5/31/07
to mapi...@googlegroups.com
Hi Matt,
 
It's:-
 
End MapInfo [ Interactive ]
 
Interactive is needed if you want to give the user the option of saving any unsaved work.
 
Regards,
 
Keith


From: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com] On Behalf Of Hodgskiss, Matthew
Sent: 31 May 2007 15:46
To: mapi...@googlegroups.com
Subject: [MI-L] Mapbasic syntax to shutdown MapInfo Pro

Hi,
 
Could anyone tell me the mapbasic code that could be used at the end of a workspace to shutdown mapinfo automatically?
 
Regards
 
Matt Hodgskiss
GIS / SNN Officer and LLPG Custodian
GIS Unit
Macclesfield Borough Council
Town Hall, Macclesfield, SK10 1DT
Tel: 01625 50(4671)
Fax: 01625 50(4675)
 

style="BACKGROUND-COLOR: #ffffff">

This message has been scanned for viruses by MailControl

***********************************************************************************
The information in this Email and any attachments is personal to the
sender and the views of the author may not necessarily reflect those
of Macclesfield Borough Council. The information is strictly confidential
and is intended only for the named person or organisation to whom it is
addressed as it may contain privileged and confidential information. If
you are not the intended recipient do not copy, distribute or use this
Email, and please notify the sender. Please note that we cannot
guarantee that this message or any attachment is virus free or has not
been intercepted and amended.
***********************************************************************************



This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.

The ultimate parent company of the Atkins Group is WS Atkins plc.  Registered in England No. 1885586.  Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW.

P Consider the environment. Please don't print this e-mail unless you really need to.

Driver, Greg 9434

unread,
May 31, 2007, 11:10:36 AM5/31/07
to mapi...@googlegroups.com
From the MapBasic v8.5 ref guide:
 
 
End MapInfo statement
Purpose
This statement halts MapInfo Professional.
 
Syntax
End MapInfo
[ Interactive ]
 
Description
The
End MapInfo statement halts MapInfo Professional.
An application can define a special procedure called
EndHandler, which is executed automatically
when MapInfo Professional terminates. Accordingly, when an application issues an
End MapInfo
statement, MapInfo Professional automatically executes any sleeping
EndHandler procedures
before shutting down. See
EndHandler procedure on page 271 for more information.
 
If an application issues an
End MapInfo statement, and one or more tables have unsaved edits,
MapInfo Professional prompts the user to save or discard the table edits.
 
If you include the
Interactive keyword, and if there are unsaved themes or labels, MapInfo
Professional prompts the user to save or discard the unsaved work. However, if the user's system is
set up so that it automatically saves MAPINFOW.WOR on exit, this prompt does not appear. If you
omit the
Interactive keyword, this prompt does not appear.
 
To halt a MapBasic application without exiting MapInfo Professional, use the
End Program
statement
.
 
See Also
End Program statement
, EndHandler procedure
 
 
HTH
 

Greg Driver

System Administrator
Applications Support
ICT
NOT PROTECTIVELY MARKED

-----Original Message-----
From: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com] On Behalf Of Hodgskiss, Matthew
Sent: 31 May 2007 15:46
To: mapi...@googlegroups.com
Subject: [MI-L] Mapbasic syntax to shutdown MapInfo Pro

Hi,
 
Could anyone tell me the mapbasic code that could be used at the end of a workspace to shutdown mapinfo automatically?
 
Regards
 
Matt Hodgskiss
GIS / SNN Officer and LLPG Custodian
GIS Unit
Macclesfield Borough Council
Town Hall, Macclesfield, SK10 1DT
Tel: 01625 50(4671)
Fax: 01625 50(4675)
 

Reply all
Reply to author
Forward
0 new messages