MI-L MapBasic Question
Sorry to repost but I did not get any replies: I have a directory containing approximately 2000 georeferenced tif files and I need to open them in MapInfo. The problem I am running into is twofold: 1) It asks me to specify the projection for each raster (they are all the same projection) - it would take hours to do manually. 2) I do not have a table containing the raster names otherwise I would write a program to do this Does anyone know of a program or the code that will allow me to open files in batch and specify the projection? How about code to open all of the files that are in the same directory without knowing the names? Thanks in advance. Charles Kane CDS Business Mapping 67 Broad Street, 6th Floor Boston, MA 02109 Phone: 617-737- Fax: 617-737-6233
MI-L MapBasic Question
Hi all, I have a question regarding MapBasic and was hoping someone could point me in the right direction. I am writing a program that has a table containing the names and paths to multiple data sets. All the data set names populate a MultiListBox. When I select a data set out of the MultiListBox I want the program to read the path out of the table and then open the data set. I can't quite figure this out. Does anyone have any suggestions? Thanks a lot, Johanna D. Tomesch Research Associate Bureau of Water Supply Protection New York State Dept. of Health Ph: (518) 402-7728 Fax: (518) 402-7599 [EMAIL PROTECTED] - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 15778
MI-L MapBasic Question
How come the MapBasic 7.0 program I'm working with will only create an MBO and not an MBX? What's an MBO? Marty - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10120
MI-L mapbasic Question
Hey Listers, How can I add the function to my script of selecting a set of records with a sql statement and then deleting these records. Can it be done? TIA LGS - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10347
MI-L Mapbasic question
thanks for the reply on the delete selection set in a script! Have another question, In a script can I search a field for "-" and replace it with " " without using the search and replace tool, I can get mapbasic to search for "-", just don't know how to replace it. Thanks Trevor Robar GIS Coordinator Bay Of Funday Marine Resource Centre Phone/Fax: 1 902 765 6002 Email: [EMAIL PROTECTED] - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10361
MI-L MapBasic Question
Hi, I have a simple mabasic code that would add a new item under "Tools" menu to run a function inside a dll. I packaged the .mbx and the dll in an installation file. Once I install the package. I have now the mbx and dll installed. But when I double click on the short cut or start the program from start->Program files-> ..), I have a double menu item instead on just one menu item under "Tools". (not Ok). If however I double click on the .mbx directly, i have just one menu item. (Ok) I checked the short cut to the program and it's pointing correctly to the .mbx Is there any way to fix this problem (double menu item) or i guess double execution ? I'm using MapInfo 6.5 Thanks Sam Jhonson _ http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11608
MI-L: MapBasic Question
I am going through a student workbook to learn mapbasic. I have found the section on adding buttons to current ButtonPads, I have attempted this but it is not showing up on that ButtonPad (attempting to add an open workspace button onto the auto-opening Tool ButtonPad). It says that it is compiling right but when I open Mapinfo It is not there. Am I (or the workbook?) missing a paragraph somewhere, explaining that part of it? Or some other reason. (The only think I can so far think of I can not fix _ We can not write to the drive that Mapinfo is on) Thank you in advance. Alicia Kaye Cox DHS / CH&P / PMSS 535 W. Jefferson, 3rd Floor Phone: 217 / 524 - 5987 Fax: 217 / 557 - 0515 [EMAIL PROTECTED] ___ 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.
MI-L Mapbasic question
Hello, Anybody knows where I can find a Mapbasic forum. Or maybe you can answer my question. I try to open an URL like a text file how can I do? Thanks you - Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost
MI-L MapBasic Question
I produce a number of mbx's that are employed by our company's internal employees and external contractors -- to that end would it be possible (and does MapBasic support) to integrate a segment of code that would limit the duration of the program's usage? Currently, we have several Visual Basic Applications where a code segment and a licensing program allows us to set the applications duration of use and protects against roll-back of the PC's clock. Does anyone have recommendations or examples of how one might be able to add such functionality to a MapInfo/MapBasic Tool? Thanks in advance, Frank Aaron
MI-L MapBasic question
Hi I'm writting a small MapBasic application. Does anybody know if it is possible to open (from MapBasic) a winzip window loaded with some defined files ? I'm able to launch winzip (Run Program) with files in the argument line, but this only zip the file without have the time to see the winzip window. I want the user see his files in the winzip window and can do some operations in this window... also in a mapbasic program, it's possible to specify some file to send by mail ? i.e. automaticly in mapbasic call a method that open a send mail window with the specified mails attached to. regards Antoine
MI-L MapBasic Question
It is possible in MapBasic to retrieve a list of files within a defined directory ?
MI-L Mapbasic question
Hi Ive written a simple mapbasic app and when the user selects print I would like to create and print a layout in the background without the user seeing it. I can create the layout no problems but would prefer it to be hiden not minimised. any help would be appreciated cheers Steve ___ 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.
MI-L mapbasic question
Hi Ive written a simple mapbasic app and when the user selects print I would like to create and print a layout in the background without the user seeing it. I can create the layout no problems but would prefer it to be hiden not minimised. any help would be appreciated cheers Steve ___ 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.
MI-L Mapbasic question
Hi I would like to declare a global variable for a path to files for a mapbasic app as the location of the files may change from being on a CD, Q drive and C drive but carn't quite get the syntax right. Any help would be appreciated. cheers Steve ___ 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.
MI-L Mapbasic question
Hey Listers, I've never been good at writing code so I'm hoping someone out there can help me. I have a table with a list of building applications that I want deleted from the main building applications table. But when I run a simple select query in mapbasic selecting all records in the main table that have a corresponding app number with my list then try to delete all records in the result query I get a message saying "Cannot delete from view". I can do all this in MI with no dramas but its got me stumped why its stuffing up in MB. This is what I've written that is causing the error message: Select Build.Baappln, Build.Pid, Build.Lotplan, Build.Location, Build.Suburb, Build.Type, Build.Class, Build.Recd from Build, AppList where Build.Baappln=AppList.Baappln into temp Delete from temp Any help will be appreciated. Cheers, Blake Slaven GIS Officer - Information Technology Burnett Shire Council Locked Bag 1 Bargara 4670 [EMAIL PROTECTED] ph: +61 (07) 4150 5504 fax: +61 (07) 4150 5410 This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Burnett Shire Council. ___ 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.
MI-L Mapbasic Question
What is the command line to reopen you info tool window. Thanks LGS ___ 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.
MI-L Mapbasic Question
> What is the command line to reopen you info tool window. Try: Set Window Info Position (1,1) takes also following special window names instead of Info: MapInfo MapBasic Help Statistics Legend Info Ruler Message Jakob Lanstorp, GIS-Developer Kampsax GIS Software & Solutions, Rugaardsvej 55, 5000 Odense, DK tel: + 45 63 13 50 13, dir: + 45 63 13 50 11, fax: + 45 63 13 50 90 mailto:[EMAIL PROTECTED] , http://www.kampsax-gis.dk Authorized MapInfo Partner & Distributor in Denmark and Norway - Videresendt af Jakob Lanstorp/Kampsax - 02-11-01 08:17 - "Landmark Geographic Solutions" Til: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>cc: Sendt af: Vedr.: MI-L Mapbasic Question [EMAIL PROTECTED] onsmag.com 01-11-01 16:00 Besvar venligst til "Landmark Geographic Solutions" What is the command line to reopen you info tool window. Thanks LGS ___ 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. ___ 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.
[MI-L] MapBasic Question
Hi Listers: Being a MapBasic Neophyte, I have what will probably be a dumb question. But here goes any way. I manually select a record from table A, append it to table B, delete the selected record from table A and then save both tables. To automate steps I have built a button pad and associated program to append the selected record to table B, then commit both tables. But I can’t seem to find the right statement to delete the record from table A. I know it’s simple but I’m at my wits end. Any Help? Thanks, Tom H ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
[MI-L] MapBasic Question
Hi Tom, The statement Delete From Table_A Where Rowid = id_number should work. Good Luck! Erin Erin Comparri | Mapping SpecialistCB Richard Ellis | CBRE Mapping Center1620 Fountainhead Pkwy, Suite 610 | Tempe, AZ 85282MC 877 580 4674 | F 480 929 6400 [EMAIL PROTECTED] | www.cbre.com | mapping.cbre.com ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: MI-L MapBasic Question
Charles I replied directly to your email yesterday, you apparently did not recieve it. I created a simple tool to batch convert world files to tab files (assuming the projections are identical) and then create a seamless table of all the imagery. Let me know if you would like me to send it to you. Ben Greenberg GIS Coordinator NAI MLG Commercial 262-797-9400 -Original Message- From: Charles Kane [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 2:01 PM To: mapinfo-l@lists.directionsmag.com Subject: MI-L MapBasic Question Sorry to repost but I did not get any replies: I have a directory containing approximately 2000 georeferenced tif files and I need to open them in MapInfo. The problem I am running into is twofold: 1) It asks me to specify the projection for each raster (they are all the same projection) - it would take hours to do manually. 2) I do not have a table containing the raster names otherwise I would write a program to do this Does anyone know of a program or the code that will allow me to open files in batch and specify the projection? How about code to open all of the files that are in the same directory without knowing the names? Thanks in advance. Charles Kane CDS Business Mapping 67 Broad Street, 6th Floor Boston, MA 02109 Phone: 617-737- Fax: 617-737-6233 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 15532
Re: MI-L MapBasic Question
On Fri, 4 Mar 2005, Charles Kane wrote: > Does anyone know of a program or the code that will allow me to open > files in batch and specify the projection? How about code to open all of > the files that are in the same directory without knowing the names? I believe there's MapBasic code at Jacques Paris' web site that shows you how to use the FindFirst and FindNext Windows API calls from MapBasic to get lists of files from directories. As to registering the TIF files, you'll need to know their extents to register them. Years ago, Dimitry Bogdanov posted some code to MapInfo-L that showed where to get the pixel width and heights of various raster formats. Here's the bit for TIFF files: Open File FileName$ For Binary Access Read As #1 Get #1, 1, iByteOrder If iByteOrder = 19789 Then 'MM Close File #1 Open File FileName$ For Binary Access Read As #1 ByteOrder HIGHLOW End If Get #1, 5, Offset Offset = Offset + 1 Get #1, Offset, NumTags For i = 0 To NumTags - 1 Get #1, 2 + Offset + i * 12, Val Do Case Val Case 256 Get #1, 10 + Offset + i * 12, siWidth Case 257 Get #1, 10 + Offset + i * 12, siHeight Exit For End Case Next Width = siWidth Height = siHeight So if no one has any ready-to-use solution, this should give you something to start with! - Bill Thoen - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 15533
FW: MI-L MapBasic Question
-Original Message- From: Ryan Morgan, Aerials Express [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 7:14 PM To: 'Charles Kane' Cc: MapInfo-L (MapInfo-L@lists.directionsmag.com) Subject: RE: MI-L MapBasic Question I use BatchProj (attached, look in the directionsmag tools section if you aren't Charles) to reproject infinite files in the same directory. Haven't had to try it with geotiffs, but don't see why it wouldn't work. Just run it, and follow the directions. Test it out on a backup set first until you learn how it works. Hope it helps you, Ryan Morgan Aerials Express www.Aerials-Express.com -Original Message- From: Charles Kane [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 1:01 PM To: mapinfo-l@lists.directionsmag.com Subject: MI-L MapBasic Question Sorry to repost but I did not get any replies: I have a directory containing approximately 2000 georeferenced tif files and I need to open them in MapInfo. The problem I am running into is twofold: 1) It asks me to specify the projection for each raster (they are all the same projection) - it would take hours to do manually. 2) I do not have a table containing the raster names otherwise I would write a program to do this Does anyone know of a program or the code that will allow me to open files in batch and specify the projection? How about code to open all of the files that are in the same directory without knowing the names? Thanks in advance. Charles Kane CDS Business Mapping 67 Broad Street, 6th Floor Boston, MA 02109 Phone: 617-737- Fax: 617-737-6233 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 15543
RE: MI-L MapBasic Question
Johanna MB Help can explain Processing a MultiListBox control better than I: Processing a MultiListBox control To read what items the user selected from a MultiListBox control, assign a handler procedure that is called when the user dismisses the dialog (for example, assign a handler to the OKButton control). Within the handler procedure, set up a loop to call ReadControlValue( ) repeatedly. The first call to ReadControlValue( ) returns the number of the first selected item; the second call to ReadControlValue( ) returns the number of the second selected item; etc. When ReadControlValue( ) returns zero, you have exhausted the list of selected items. If the first call to ReadControlValue( ) returns zero, there are no list items selected. Not sure what you mean by a dataset, but, if a series of table s to be mapped, I assume your listbox items come from a 1-D array so you've already concatenated your path and table names into array strings, e.g. I = 1 Fetch first from MyTable Do while not EOT( MyTable) laMyPathArray( I) = MyTable.Path + "\" + MyTable.DataSet Fetch next from MyTable I = I + 1 Next In the above help text you have a loop in which you get each value from the list into a variable, say. E.g. lcNextTable = laMyPathArray( I) + ".TAB" With each you can issue: Open Table lcNextTable Interactive This the correct idea? HTH Terry McDonnell -Original Message- From: Johanna D. Tomesch [mailto:[EMAIL PROTECTED] Sent: 23 March 2005 15:00 To: Terry McDonnell Subject: MI-L MapBasic Question Hi all, I have a question regarding MapBasic and was hoping someone could point me in the right direction. I am writing a program that has a table containing the names and paths to multiple data sets. All the data set names populate a MultiListBox. When I select a data set out of the MultiListBox I want the program to read the path out of the table and then open the data set. I can't quite figure this out. Does anyone have any suggestions? Thanks a lot, Johanna D. Tomesch Research Associate Bureau of Water Supply Protection New York State Dept. of Health Ph: (518) 402-7728 Fax: (518) 402-7599 [EMAIL PROTECTED] - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 15778 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 15780
RE: MI-L MapBasic Question
It will create an .mbx but you probably have a call or declare to a function it can't find in the current module. It then assumes it's part of a project so it creates an .mbo which is the file extension for a "MapBasic Object" you can create an .mbx from .mbo's by linking them in one project. It allows MapBasic developers to modularize their code so individual .mb files do not get so large as to be impossible to read and maintain. -Original Message- From: Marty Sprenz [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 6:55 AM To: 'Mapinfo List' Subject: MI-L MapBasic Question How come the MapBasic 7.0 program I'm working with will only create an MBO and not an MBX? What's an MBO? Marty - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10120 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10122
RE: MI-L MapBasic Question
Got it! Thank you for you valuable time, Marty -Original Message- From: Canfield, Andrew [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 10:13 AM To: 'Marty Sprenz'; 'Mapinfo List' Subject: RE: MI-L MapBasic Question It will create an .mbx but you probably have a call or declare to a function it can't find in the current module. It then assumes it's part of a project so it creates an .mbo which is the file extension for a "MapBasic Object" you can create an .mbx from .mbo's by linking them in one project. It allows MapBasic developers to modularize their code so individual .mb files do not get so large as to be impossible to read and maintain. -Original Message- From: Marty Sprenz [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 6:55 AM To: 'Mapinfo List' Subject: MI-L MapBasic Question How come the MapBasic 7.0 program I'm working with will only create an MBO and not an MBX? What's an MBO? Marty - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10120 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10122 *** IMPORTANT Confidentiality: This communication is intended for the above named person and is confidential and/or legally privileged any opinion expressed in this communication are not necessarily those of the Egyptian company for Mobile Services (MobiNil). If it has come to you in error you must take no action based on it, nor must you copy or show it to anyone: please delete/destroy and inform the sender immediately. No Responsibility: MobiNil is not responsible for any political, religious, racial or partisan opinion in any correspondence conducted by its domain users. Therefore, any such opinion expressed, whether explicitly or implicitly, in any said correspondence is not to be interpreted as that of MobiNil. Monitoring/Viruses: MobiNil may monitor all incoming & outgoing e-mails in line with current legislation. Although we have taken steps to ensure that this e-mail and attachments are free from any Virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. The Egyptian Company for Mobile Services (MobiNil) www.mobinil.com The World Trade Center: 1191 Corniche El Nil, Boulaq - Cairo - Egypt Telephone: +20 2 574 - 7000 or + 20 12 320 - Fax: +20 2 574 - 7111 or +20 12 320- 7111 *** - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10128
RE: MI-L MapBasic Question
Here is a demo of the map basic project combining MainTest.mb and Dopey.mb into an application MainTest.mbx: '* ' MainTest.mbp [LINK] Application=MainTest.mbx Module=MainTest.mbo Module=Dopey.mbo '* ' MainTest.mb Include "Dopey.def" Declare Sub Main Sub Main Note "Main" ' Call Sub in Dopey. Call SubCall ' Call Function in Dopey. Note FuncCall() ' This won't work without the "()". ' Show the global from Dopey. Note m_LookMa End Sub '** ' Dopey.mb Declare Sub SubCall() Declare Function FuncCall() As String Global m_LookMa As String Function FuncCall() As String m_LookMa = "Hello World!" FuncCall = "FuncCall Ran." End Function Sub SubCall Note "SubCall Ran." End Sub '** -Original Message- From: Marty Sprenz [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 9:05 AM To: 'Canfield, Andrew'; 'Mapinfo List' Subject: RE: MI-L MapBasic Question Got it! Thank you for you valuable time, Marty -Original Message- From: Canfield, Andrew [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 10:13 AM To: 'Marty Sprenz'; 'Mapinfo List' Subject: RE: MI-L MapBasic Question It will create an .mbx but you probably have a call or declare to a function it can't find in the current module. It then assumes it's part of a project so it creates an .mbo which is the file extension for a "MapBasic Object" you can create an .mbx from .mbo's by linking them in one project. It allows MapBasic developers to modularize their code so individual .mb files do not get so large as to be impossible to read and maintain. -Original Message- From: Marty Sprenz [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 6:55 AM To: 'Mapinfo List' Subject: MI-L MapBasic Question How come the MapBasic 7.0 program I'm working with will only create an MBO and not an MBX? What's an MBO? Marty - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10120 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10122 *** IMPORTANT Confidentiality: This communication is intended for the above named person and is confidential and/or legally privileged any opinion expressed in this communication are not necessarily those of the Egyptian company for Mobile Services (MobiNil). If it has come to you in error you must take no action based on it, nor must you copy or show it to anyone: please delete/destroy and inform the sender immediately. No Responsibility: MobiNil is not responsible for any political, religious, racial or partisan opinion in any correspondence conducted by its domain users. Therefore, any such opinion expressed, whether explicitly or implicitly, in any said correspondence is not to be interpreted as that of MobiNil. Monitoring/Viruses: MobiNil may monitor all incoming & outgoing e-mails in line with current legislation. Although we have taken steps to ensure that this e-mail and attachments are free from any Virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. The Egyptian Company for Mobile Services (MobiNil) www.mobinil.com The World Trade Center: 1191 Corniche El Nil, Boulaq - Cairo - Egypt Telephone: +20 2 574 - 7000 or + 20 12 320 - Fax: +20 2 574 - 7111 or +20 12 320- 7111 *** - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10128 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10129
RE: MI-L MapBasic Question
I was missing the Dopey.def file for that demo: '* ' MainTest.mbp [LINK] Application=MainTest.mbx Module=MainTest.mbo Module=Dopey.mbo '* ' MainTest.mb Include "Dopey.def" Declare Sub Main Sub Main Note "Main" ' Call Sub in Dopey. Call SubCall ' Call Function in Dopey. Note FuncCall() ' This won't work without the "()". ' Show the global from Dopey. Note m_LookMa End Sub '** ' Dopey.mb Declare Sub SubCall() Declare Function FuncCall() As String Global m_LookMa As String Function FuncCall() As String m_LookMa = "Hello World!" FuncCall = "FuncCall Ran." End Function Sub SubCall Note "SubCall Ran." End Sub '** ' Dopey.def Declare Function FuncCall() As String Declare Sub SubCall() Global m_LookMa As String '** -Original Message- From: Mcinnis, Michael [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 9:13 AM To: 'Marty Sprenz'; 'Canfield, Andrew'; 'Mapinfo List' Subject: RE: MI-L MapBasic Question Here is a demo of the map basic project combining MainTest.mb and Dopey.mb into an application MainTest.mbx: '* ' MainTest.mbp [LINK] Application=MainTest.mbx Module=MainTest.mbo Module=Dopey.mbo '* ' MainTest.mb Include "Dopey.def" Declare Sub Main Sub Main Note "Main" ' Call Sub in Dopey. Call SubCall ' Call Function in Dopey. Note FuncCall() ' This won't work without the "()". ' Show the global from Dopey. Note m_LookMa End Sub '** ' Dopey.mb Declare Sub SubCall() Declare Function FuncCall() As String Global m_LookMa As String Function FuncCall() As String m_LookMa = "Hello World!" FuncCall = "FuncCall Ran." End Function Sub SubCall Note "SubCall Ran." End Sub '** -Original Message- From: Marty Sprenz [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 9:05 AM To: 'Canfield, Andrew'; 'Mapinfo List' Subject: RE: MI-L MapBasic Question Got it! Thank you for you valuable time, Marty -Original Message- From: Canfield, Andrew [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 10:13 AM To: 'Marty Sprenz'; 'Mapinfo List' Subject: RE: MI-L MapBasic Question It will create an .mbx but you probably have a call or declare to a function it can't find in the current module. It then assumes it's part of a project so it creates an .mbo which is the file extension for a "MapBasic Object" you can create an .mbx from .mbo's by linking them in one project. It allows MapBasic developers to modularize their code so individual .mb files do not get so large as to be impossible to read and maintain. -Original Message- From: Marty Sprenz [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 6:55 AM To: 'Mapinfo List' Subject: MI-L MapBasic Question How come the MapBasic 7.0 program I'm working with will only create an MBO and not an MBX? What's an MBO? Marty - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10120 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10122 *** IMPORTANT Confidentiality: This communication is intended for the above named person and is confidential and/or legally privileged any opinion expressed in this communication are not necessarily those of the Egyptian company for Mobile Services (MobiNil). If it has come to you in error you must take no action based on it, nor must you copy or show it to anyone: please delete/destroy and inform the sender immediately. No Responsibility: MobiNil is not responsible for any political, religious, racial or partisan opinion in any correspondence conducted by its domain users. Therefore, any such opinion expressed, whether explicitly or implicitly, in any said correspondence is not to be interpreted as that of MobiNil. Monitoring/Viruses: MobiNil may monitor all incoming & outgoing e-ma
RE: MI-L mapbasic Question
how i do it... ## select * from TableName where STUFF = WHATYOUWANT into KillMe delete from KillMe close table KillMe ## -Original Message- From: Landmark Geographic Solutions [mailto:[EMAIL PROTECTED] Sent: Tuesday, 10 February 2004 2:20 PM To: MapInfo Listers Subject: MI-L mapbasic Question Hey Listers, How can I add the function to my script of selecting a set of records with a sql statement and then deleting these records. Can it be done? TIA LGS - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10347 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10348
RE: MI-L mapbasic Question
Don't you also need a "Commit Table TableName" statement? -Original Message- From: Simmonds, Ashley (OPT) [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 11:06 PM To: MapInfo Listers Subject: RE: MI-L mapbasic Question how i do it... ## select * from TableName where STUFF = WHATYOUWANT into KillMe delete from KillMe close table KillMe ## -Original Message- From: Landmark Geographic Solutions [mailto:[EMAIL PROTECTED] Sent: Tuesday, 10 February 2004 2:20 PM To: MapInfo Listers Subject: MI-L mapbasic Question Hey Listers, How can I add the function to my script of selecting a set of records with a sql statement and then deleting these records. Can it be done? TIA LGS - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10347 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10348 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10356
RE: MI-L MapBasic Question
Go with a number of runs limit rather than a date. Release the app and with 50 trial uses. That way if they install it and forget about it until after the 30 days they can still try your program. Write the number of uses to a file in the registry each time using the API (you will have to convert your api function declarations to mapbasic variable structure but that is easy) name your file something that sounds system critical and give it a .dll extension to fool even the most experienced users. Each time the program runs have it check the number written to the file and add one to it if it's greater than fifty Note "Your number of trial uses has expired." Exit sub. -Original Message- From: Frank Aaron (EUS) [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 8:50 AM To: '[EMAIL PROTECTED]' Subject: MI-L MapBasic Question I produce a number of mbx's that are employed by our company's internal employees and external contractors -- to that end would it be possible (and does MapBasic support) to integrate a segment of code that would limit the duration of the program's usage? Currently, we have several Visual Basic Applications where a code segment and a licensing program allows us to set the applications duration of use and protects against roll-back of the PC's clock. Does anyone have recommendations or examples of how one might be able to add such functionality to a MapInfo/MapBasic Tool? Thanks in advance, Frank Aaron - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 4847
Re: MI-L MapBasic Question
If you want MBX apps to time-out after a certain number of days, you have to build it yourself. The simplest method is to hard-code a "time-to-die" date into the code and test that against the systems clock. To check that the user hasn't rolled back the system date, just check the dates on some system files to see if any are newer than the system date. Other techniques involve writing the install date in an encrypted file or in the registry, but these are easily defeated if the user knows where to look. To get around this, you could use a demo mode setting for new programs and have the user register by phone or web link to get a code from you to upgrade the app to full. That way if the user tries to wipe out the key file, the app drops back to demo level. There's even fancier tricks, but you have to ask yourself how much protection do you really need vs how much trouble it is to code? In the end, there's no bullet-proof scheme that will stop a dedicated hacker (even dongles get hacked easily), but most legitimate users won't bother to try, nor will most be able to defeat a simple system, especially if they have to get a key from you to run an app in full mode. There's also other tools besides code solutions: license agreements and lawyers, for starters... - Bill Thoen "Frank Aaron (EUS)" wrote: > > I produce a number of mbx's that are employed by our company's internal employees >and external contractors -- to that end would it be possible (and does MapBasic >support) to integrate a segment of code that would limit the duration of the >program's usage? Currently, we have several Visual Basic Applications where a code >segment and a licensing program allows us to set the applications duration of use and >protects against roll-back of the PC's clock. Does anyone have recommendations or >examples of how one might be able to add such functionality to a MapInfo/MapBasic >Tool? Thanks in advance, > > Frank Aaron - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 4848
Re: MI-L MapBasic Question
I do something similar to what the others have proposed, writing the date into a hidden file somewhere, but I also come up with a sort of encryption for the date. I change the numbers into something that doesn't appear to be a date at all by adding numbers, converting it to ascii characters or some other technique. You can get real creative with this and you don't even have to hide it. Good luck. CAmeron "Frank Aaron (EUS)" wrote: > I produce a number of mbx's that are employed by our company's internal employees >and external > contractors -- to that end would it be possible (and does MapBasic support) to >integrate a segment of > code that would limit the duration of the program's usage? Currently, we have >several Visual Basic > Applications where a code segment and a licensing program allows us to set the >applications duration > of use and protects against roll-back of the PC's clock. Does anyone have >recommendations or examples > of how one might be able to add such functionality to a MapInfo/MapBasic Tool? >Thanks in > advance, > > Frank Aaron - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 4851
Re: MI-L MapBasic question
Antoine Gilbert, KOREM wrote: > I'm writting a small MapBasic application. Does anybody know if > it is possible to open (from MapBasic) a winzip window loaded with some defined files ? > I'm able to launch winzip (Run Program) with files in the argument line, > but this only zip the file without have the time to see the winzip window. > I want the user see his files in the winzip window and can do some operations in this window... Well, you're doing this exactly the way you need to do it. Except you will have to check your WinZip documentation to find a command-line argument to keep WinZip open after the initial zipping is done. > Also: > >in a mapbasic program, it's possible to specify some file >to send by mail ? i.e. automaticly in mapbasic call a method that >open a send mail window with the specified mails attached to. You still need to use "Run Program", but it's harder since you don't necessarily know which email software you are using. It's possible that you could use DDEExecute to send commands to EXPLORER.EXE, telling EXPLORER to mail the file using whatever email software is registered. I have NO idea what those commands might be, unfortunately. Neither of these things is really MapBasic-specific. You know how to make MapBasic tell other programs what to do; the only problem is what to tell those programs to do. HTH Spencer ___ 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.
RE: MI-L MapBasic Question
> It is possible in MapBasic to retrieve a list of files within a defined > directory ? > > YesI got this answer from the list some time ago: Below is a snippet of code that allows you to retrieve file names located in a particular directory. The first argument of the FindFirstFile API call can either be a string that specifies a valid directory or path and filename, which can contain wildcard characters (* and ?). In my example below I'm searching for all the Word documents (.doc) in the c:\temp directory. Make sure you include all the constants, type and function declarations in your MB code and also remember to release the FindFirstFileHandle at the end!! Hope this helps, *** define MAX_PATH 260 Type FILETIME dwLowDateTime As Integer dwHighDateTime As Integer End Type Type WIN32_FIND_DATA dwFileAttributes As Integer ftCreationTime As FILETIME ftLastAccessTime As FILETIME ftLastWriteTime As FILETIME nFileSizeHigh As Integer nFileSizeLow As Integer dwReserved0 As Integer dwReserved1 As Integer cFileName As String * MAX_PATH ' This is the 'long' file name of the file cAlternate As String * 14 ' This name is in the classic 8.3 (filename.ext) filename format. End Type Declare Function FindFirstFile Lib "kernel32" Alias "FindFirstFileA" (ByVal lpFileName As String, lpFindFileData As WIN32_FIND_DATA) As Integer Declare Function FindNextFile Lib "kernel32" Alias "FindNextFileA" (ByVal hFindFile As Integer, lpFindFileData As WIN32_FIND_DATA) As Integer Declare Function FindClose Lib "kernel32" Alias "FindClose" (ByVal hFindFile As Integer) As Integer Dim FindFileData as WIN32_FIND_DATA Dim FindFileHandle,FindCloseResult as Integer FindFileHandle=FindFirstFile("c:\temp\*.doc",FindFileData) do print FindFileData.cFileName loop until (NOT FindNextFile(FindFileHandle,FindFileData)) FindCloseResult=FindClose(FindFileHandle) ' release the FindFileHandle or if you don't want to use the API: MapBasic has no functions for getting a list of files in a directory. You can use the Windows API, or use the following, which uses a DOS command to get the list into a file which can then be read in MapBasic. Dim filelist() As String Dim counter As Integer 'get command to produce a brief (filenames only) listing to a file Run Program "Command.com /C dir /B > files.txt" 'the OnError traps the situation where the file has not been 'completely written OnError Goto FILE_NOT_READY_YET Open File "files.txt" For Input As #1 counter = 1 Do While (Not EOF(1)) ReDim filelist(counter) Input # 1, filelist(counter) counter = counter +1 Loop Dialog Title "File List" Control ListBox Title From Variable filelist Control OkButton End Program FILE_NOT_READY_YET: Resume 0 This section was derived from a posting by MapInfo techsupport. Regards Thomas Brix Lyng Frederikshavn munincipal administration Denmark ___ 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.
SV: MI-L mapbasic question
To Steven - Try the following: Mapbasic code == include "mapbasic.def" Declare Function ShowWindow Lib "user32.dll" (ByVal hwnd As integer, ByVal nCmdShow As integer) As integer ' most of the constants are not used... define SW_HIDE 0 define SW_MAXIMIZE 3 define SW_MINIMIZE 6 define SW_RESTORE 9 define SW_SHOW 5 define SW_SHOWMAXIMIZED 3 define SW_SHOWMINIMIZED 2 define SW_SHOWMINNOACTIVE 7 define SW_SHOWNA 8 define SW_SHOWNOACTIVATE 4 define SW_SHOWNORMAL 1 declare sub main sub main Dim winid,hwnd,retval As integer ' return value Set CoordSys Layout Units "in" Layout Position (0, 0) Width .01 Height .01 winid = frontwindow() ' Get the window handle for the layout window hwnd = windowinfo(winid,WIN_INFO_WND) ' Hide window retval = ShowWindow (hwnd,SW_HIDE) Set Window winid Width 5 Height 3 '. '. '. '.Do layout stuff, ex. Create Frame Into Window winid(1,2) (4, 5) Title "Whatever" PrintWin Window winid close window winid end sub end mapbasic == The layout window will "blink" and then disappear. I believe that you can't remove the "blink", but you can minimize the effect by making the initial window _very_ small, and then hide it. When the window is hidden, you can redefine the window size. regards Bo Thomsen GeoConsult I/S -Oprindelig meddelelse----- Fra: Steven Heapy [mailto:[EMAIL PROTECTED]] Sendt: 9. marts 2001 04:01 Til: [EMAIL PROTECTED] Emne: MI-L mapbasic question Hi Ive written a simple mapbasic app and when the user selects print I would like to create and print a layout in the background without the user seeing it. I can create the layout no problems but would prefer it to be hiden not minimised. any help would be appreciated cheers Steve ___ 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. ___ 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.
RE: MI-L mapbasic question
Steve - You could create the layout outside the screen extents, essentially hiding it. This example uses the 'Position' clause to create it at 100,100: Layout Position (100,100) Units "in" Width 8.55208 Units "in" Height 5.41667 Units "in" Set CoordSys Layout Units "in" Then you could issue PrintWin and Close Window commands to print and close the layout: PrintWin Close Window FrontWindow() -Tim Nuteson Target Corporation -Original Message- From: Steven Heapy [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 9:01 PM To: [EMAIL PROTECTED] Subject: MI-L mapbasic question Hi Ive written a simple mapbasic app and when the user selects print I would like to create and print a layout in the background without the user seeing it. I can create the layout no problems but would prefer it to be hiden not minimised. any help would be appreciated cheers Steve ___ 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. ___ 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.
RE: MI-L Mapbasic question
Hi Have you tried: Select * from build where Baappln in (select baappln from applist) into mytab Delete from mytab Give that a go - should do what you want. You have made a join between 2 tables and that creates a VIEW not another query table. You can delete from a query table using the SQL method above. HTH (hope that helps!) regards Doug -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Slaven Blake Sent: 22 October 2001 02:59 To: Mapinfo Mailing List (E-mail) Subject: MI-L Mapbasic question Hey Listers, I've never been good at writing code so I'm hoping someone out there can help me. I have a table with a list of building applications that I want deleted from the main building applications table. But when I run a simple select query in mapbasic selecting all records in the main table that have a corresponding app number with my list then try to delete all records in the result query I get a message saying "Cannot delete from view". I can do all this in MI with no dramas but its got me stumped why its stuffing up in MB. This is what I've written that is causing the error message: Select Build.Baappln, Build.Pid, Build.Lotplan, Build.Location, Build.Suburb, Build.Type, Build.Class, Build.Recd from Build, AppList where Build.Baappln=AppList.Baappln into temp Delete from temp Any help will be appreciated. Cheers, Blake Slaven GIS Officer - Information Technology Burnett Shire Council Locked Bag 1 Bargara 4670 [EMAIL PROTECTED] ph: +61 (07) 4150 5504 fax: +61 (07) 4150 5410 This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Burnett Shire Council. ___ 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. ___ 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.
Re: [MI-L] MapBasic Question
Hi Tom, Try: delete from tablename [where rowid=n] You'll need to supply the table name in place of "tablename". The optional rowid where clause allows you to select a particular record to delete. -- Eric Johnson Tom Halbrook wrote: Hi Listers: Being a MapBasic Neophyte, I have what will probably be a dumb question. But here goes any way. I manually select a record from table A, append it to table B, delete the selected record from table A and then save both tables. To automate steps I have built a button pad and associated program to append the selected record to table B, then commit both tables. But I can’t seem to find the right statement to delete the record from table A. I know it’s simple but I’m at my wits end. Any Help? Thanks, Tom H ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
MI-L MapBasic question - Style override
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. Listers, Is there anyway when switching a layer on in MapBasic to know whether a global style override has been set? The reason I ask is that we have a small MapBasic application that switches loaded raster images on and off. The only problem is when an image has been switched off and a style override has been set for the layer, when it's switched back on again it displays as default (without the style override). Looking at the MapBasic reference guide it's only possible to switch a layer on as either GLOBAL (with style override) or GRAPHIC (as default). So if you use GRAPHIC it ignores any previous style overrides that had been set or if you use GLOBAL this displays with style override regards of whether it was set previous to being switched off. Any ideas on how I can get round this and know when a style override has been set? Thanks in advance. Greg Internet communications are not secure and therefore Surrey Police does not accept legal responsibility for the contents of this message. This email and any attachments may be confidential. They may contain privileged information and are intended for the named addressee (s) only. They must not be distributed without our consent. If you are not the intended recipient, please notify us immediately and delete the message and any attachments from your computer, do not disclose, distribute, or retain this email or any part of it. Unless expressly stated, opinions in this email are those of the individual sender, and not of Surrey Police. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. Surrey Police reserves the right to monitor all email communications through their networks. ___ 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.
RE: MI-L MapBasic question - Style override
Greg, There are many instances where it is difficult if not impossible to know directly whar some settings are. For example, what about the current style of the border pen of a region? I have found that in many cases one must "do" and scan the results for finding the setting values. In your case, I would use windowinfo(frontwindow(),15) that returns a string with all the statements required for cloning the window. Scanning through it to find SET MAP ... LAYER (right layer id) DISPLAY and read the following word as OFF, GRAPHIC or GLOBAL Cumbersome to code but executes in a jiffy Jacques Paris e-mail [EMAIL PROTECTED] MapInfo/MapBasic support http://www.paris-pc-gis.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Driver, Greg 9434 Sent: October 2, 2001 06:41 To: '[EMAIL PROTECTED]' Subject: MI-L MapBasic question - Style override This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. Listers, Is there anyway when switching a layer on in MapBasic to know whether a global style override has been set? The reason I ask is that we have a small MapBasic application that switches loaded raster images on and off. The only problem is when an image has been switched off and a style override has been set for the layer, when it's switched back on again it displays as default (without the style override). Looking at the MapBasic reference guide it's only possible to switch a layer on as either GLOBAL (with style override) or GRAPHIC (as default). So if you use GRAPHIC it ignores any previous style overrides that had been set or if you use GLOBAL this displays with style override regards of whether it was set previous to being switched off. Any ideas on how I can get round this and know when a style override has been set? Thanks in advance. Greg Internet communications are not secure and therefore Surrey Police does not accept legal responsibility for the contents of this message. This email and any attachments may be confidential. They may contain privileged information and are intended for the named addressee (s) only. They must not be distributed without our consent. If you are not the intended recipient, please notify us immediately and delete the message and any attachments from your computer, do not disclose, distribute, or retain this email or any part of it. Unless expressly stated, opinions in this email are those of the individual sender, and not of Surrey Police. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. Surrey Police reserves the right to monitor all email communications through their networks. ___ 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. ___ 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.
RE: MI-L MapBasic question - Style override
Hi Greg. You can use LayerInfo( n, LAYER_INFO_DISPLAY) to determine if an override is set. Check out the LayerInfo() function in the help file for the return codes. Regards, Tim Nuteson Target Corporation -Original Message- From: Driver, Greg 9434 [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 5:41 AM To: '[EMAIL PROTECTED]' Subject: MI-L MapBasic question - Style override This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. Listers, Is there anyway when switching a layer on in MapBasic to know whether a global style override has been set? The reason I ask is that we have a small MapBasic application that switches loaded raster images on and off. The only problem is when an image has been switched off and a style override has been set for the layer, when it's switched back on again it displays as default (without the style override). Looking at the MapBasic reference guide it's only possible to switch a layer on as either GLOBAL (with style override) or GRAPHIC (as default). So if you use GRAPHIC it ignores any previous style overrides that had been set or if you use GLOBAL this displays with style override regards of whether it was set previous to being switched off. Any ideas on how I can get round this and know when a style override has been set? Thanks in advance. Greg Internet communications are not secure and therefore Surrey Police does not accept legal responsibility for the contents of this message. This email and any attachments may be confidential. They may contain privileged information and are intended for the named addressee (s) only. They must not be distributed without our consent. If you are not the intended recipient, please notify us immediately and delete the message and any attachments from your computer, do not disclose, distribute, or retain this email or any part of it. Unless expressly stated, opinions in this email are those of the individual sender, and not of Surrey Police. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. Surrey Police reserves the right to monitor all email communications through their networks. ___ 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. ___ 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.
[MI-L] MapBasic Question: Custom Shortcut Menu
Using MapBasic, does anyone know if it is possible to create a custom "mapper shortcut" menu for one map window and a different one for another map window in the same session? - Bill Thoen ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
MI-L Mapbasic question - please disregard previous question
Hi Sorry I had just left off a quote cheers Steve ___ 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.
SUM: [MI-L] MapBasic Question: Custom Shortcut Menu
Bill Thoen wrote: Using MapBasic, does anyone know if it is possible to create a custom "mapper shortcut" menu for one map window and a different one for another map window in the same session? Well, well... Once again, this list comes up with the answer! Thanks to Jacques Paris and Steve Nabors for the hints. The trick is to use the WinFocusChangedHandler() function and rewrite the MapperShortcut menu (ID 17) depending on whether the focus is in the special window you want or not. Steve also mentioned that if you push this technique too far it's not all that stable. But the following scrapplication shows that it works, and for two windows it looks stable enough (I couldn't break it.) This creates a simple table and opens two windows. The one with the yellow rectangle is the special one. Right-click in this one and all you get is is the Exit option on the flying menu. But right-click on the green one and you get the normal MapperShortcut menu. Sorry for the lack of comments, but this is just a study for the real thing later. However, it works and cleans up after itself. ' SwitchMenu.mb ' Demo showing how to switch mapper shortcut menus on ' the fly for special mappers Include "MapBasic.def" Declare Sub Main Declare Sub MnuExit Declare Sub WinFocusChangedHandler Declare Sub OpenMappers Dim m_nWin As Integer Sub Main Create Menu "SwitchMenu" As "Exit" Calling MnuExit Alter Menu Bar Add "SwitchMenu" Set Handler WinFocusChangedHandler Off Call OpenMappers Set Handler WinFocusChangedHandler On End Sub Sub MnuExit Drop Table Special End Program End Sub Sub WinFocusChangedHandler If CommandInfo (CMD_INFO_WIN) = m_nWin Then Create Menu "MapperShortcut" As "Exit" Calling MnuExit Else Create Menu "MapperShortcut" As Default End If End Sub Sub OpenMappers Dim objRect As Object Close All Interactive Create Table Special ( id Integer ) File ApplicationDirectory$()+"Special.TAB" Create Map For Special CoordSys NonEarth Units "in" Bounds (0,0) (10,10) Set CoordSys Table Special Create Rect Into Variable objRect (1,1) (4,4) Pen (1,2,0) Brush (2,YELLOW,WHITE) Insert Into Special (obj, id) Values (objRect, 1) Create Rect Into Variable objRect (6,3) (9,6) Pen (1,2,0) Brush (2,GREEN,WHITE) Insert Into Special (obj, id) Values (objRect, 2) Map From Special Set Window FrontWindow() Position (0,0) Width 3 Height 3 Set Map Center (2.5,2.5) Zoom 4 Units "in" m_nWin = FrontWindow() ' Make this the special mapper Map From Special Set Window FrontWindow() Position (4.2,1) Width 3 Height 3 Set Map Center (7.5,4.5) Zoom 4 Units "in" End Sub ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
MI-L Mapbasic Question :- Code for creating offset lines
I'm sure someone has done this before, I have a need to add points data at a particular offset from property boundry. Is it possible to select the boundary line or create a line which encompases many property boundary and have that line offset say 6m so that I have a quick guide to more accurately place my point items. Many thanks Holroyd City CouncilEngineering Services
RE: MI-L Mapbasic Question :- Code for creating offset lines
Perhaps I'm misunderstanding your question but isn't a buffer what you need to create? If so, you don't need MapBasic, although you can create buffers using the Buffer(), or Create Buffer as Object statements, you simply need to use the Buffer command from the Objects menu. Keith -Original Message-From: Ulung Gurtala [mailto:[EMAIL PROTECTED]]Sent: 11 October 2000 00:05To: [EMAIL PROTECTED]Subject: MI-L Mapbasic Question :- Code for creating offset lines I'm sure someone has done this before, I have a need to add points data at a particular offset from property boundry. Is it possible to select the boundary line or create a line which encompases many property boundary and have that line offset say 6m so that I have a quick guide to more accurately place my point items. Many thanks Holroyd City CouncilEngineering Services
RE: MI-L Mapbasic Question :- Code for creating offset lines
You can try halfbuffer (on our site as HALFBUFF13.zip) that will build a parallel line on one side of the “street” at the time, respecting the drawing direction of each segment. Jacques PARIS e-mail [EMAIL PROTECTED] For MapInfo support, see the Paris PC Consult enr. site at http://www.total.net/~rparis/gisproducts.htm For MapBasic questions see the J.Paris site at http://www.total.net/~jakesp/index.htm -Original Message- From: Ulung Gurtala [mailto:[EMAIL PROTECTED]] Sent: 11 October 2000 00:05 To: [EMAIL PROTECTED] Subject: MI-L Mapbasic Question :- Code for creating offset lines I'm sure someone has done this before, I have a need to add points data at a particular offset from property boundry. Is it possible to select the boundary line or create a line which encompases many property boundary and have that line offset say 6m so that I have a quick guide to more accurately place my point items. Many thanks Holroyd City Council Engineering Services