[MI-L] OT: ESRI geocoding

2006-10-27 Thread Trey
This is for some of the ESRI *geocoding* guru's

Our 911 locations are moving to a vendor provided mapping solution
[not my choice but mandated my the money people at the state]

The question is

The data stream includes a *carriage return* / CR / 0x0D / #13 between the 
Pre-directional [e w n s] and the street name [Main St]

Is there a way to add the carriage return to the STRIPLIST and/or SEPLIST such 
as:
STRIPLIST  ,/ + 0x0d  add CR to the list of space comma slash
Striplist \#13 where \ is the escape character for the #
Striplist 0x0D ,() the CR space comma ( and )

or is the CR not even considered

I have been reading the ESRI doc from
http://webhelp.esri.com/arcgisdesktop/9.2/pdf/Geocoding_Rule_Base_Developer_Guide.pdf

This is driving us nuts

If anyone has all the rules files [*.stn / cls / mat / pat /etc] to set up 
the geocoding to work like MapInfo and include the Zip [for us it is really a 
3 character ESN zone] like the *us_addr.stn* if you would be willing to part 
with it I'd really appreciate it. [email is below]

Trey Pattillo
[EMAIL PROTECTED]

-- 
Failure is not an option...
it comes standard with all Microsoft products.
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] Mapbasic and Delphi 2005 Dll

2006-10-24 Thread Trey
The mail from Monday I sent from the office got lost some where so I do it 
again.

You can go to my web site in the download section and get UltraMsg
I wrote this back in 1999 and the zip file has all the source and examples for 
MBX's.  About half way down the page:
http://www.wap3.com/download/index.shtml

The main thing on creating forms in DLL is to do a create and get the handle, 
then set up position/size, title, fonts, data, and then show the form and 
finally you have to destroy it.

UltraMsg provides, as its name says, it is a Rich Text Editor.
Plus just about every type of conversion and math, like real XOR, string 
search and replace and many, many more.

To recompile the dll, it should work as is, you will need to get HyperString.
After scouring the net for a couple of hours it looks as though EFD Systems 
and Ernie Deel [author] have dissappeared.
So in lieu of any copywrit stuff you can download the last D6 free version 
from here on my web:
http://www.wap3.com/download/hstr540.zip


On Sunday 22 October 2006 5:39 pm, Nathan Woodrow wrote:
 Hi All,

 Just a little help with a Dll, I have created using Delphi 2005.

 The Delphi project contains the Dll and a Unit(Form) which I want to be
 able to call from mapbasic.

 I have complied the Dll and complied my little mapbasic code that calls
 the Dll procedure, but however when I run the mbx, mapinfo shows up a
 error saying Memory can not be read.

 I was just wondering can Delphi 2005 make Dll's that can export
 functions that mapbasic can call on, if so how?

 An Example the Delphi code:

 Procedure AssetForm; StdCall;
 Var Aform: TAssetCaptureForm
 Begin
 AForm:= TAssetCaptureForm.Create(Nil);
 End;

 Exports
 AssetForm;


 I don't have much code written up as I am still trying to test this way
 of doing a few things, but so far just getting the form to show up is
 giving me a headache.

 Thanks

 Nathan Woodrow
 GIS/Asset Support Officer
 Warwick Shire Council
 Ph: (07) 4661 0463

 Email: [EMAIL PROTECTED]

-- 
Failure is not an option...
it comes standard with all Microsoft products.
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


[MI-L] four color polygon

2006-09-23 Thread Trey Pattillo
well, I have lost the program from a while back on the list that will do 4 to 
X colorizing of a polygon/region table and not have 2 adjacent colors

ColorLUT is not the what I used because it does not.

Anyone have a link for the program.

--Trey Pattillo
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] multline labels

2006-09-13 Thread Trey Pattillo
here's one I use all the time
be sure to set the position for center of the object
under the field to use select expression and copy/paste the below
and set the style to be boxed
I like a light yellow background with red/blue/black letters


minimum(fromleft,toleft) + - + maximum(fromleft,toleft) + chr$(10) + Street 
+ chr$(10) + minimum(fromright,toright) + - + maximum(fromright,toright)


this produces a look the below where --- street---  is the line [- is line]

 100 - 198
-E MAIN ST ---
 101 -  199

another is

minimum(fromleft,fromright) +  -  + Street +  -  + maximum(toleft,toright)

which looks like with = being the the actual street line

== 100 - E MAIN ST - 199 


On Wed 13 Sep 2006 19:15, Kenneth Hickey wrote:
 Hey

 Can anyone tell me how to make labels with multiple lines each with data
 from different fields?

 Thanks
 Ken

-- 
Trey Pattillo

Failure is not an option
It comes standard with all Microsoft products.
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] Re: Looping in MapInfo MapBasic Window

2006-09-06 Thread Trey Pattillo
NOTE -- lengthy

lordy, lordy, lordy.
just can't believe how much people think that throwing a wheelbarrow full of 
paper with pictures of dead presidents at a problem will magically fix the 
problem[s].

What I'm I running
Linux, with VMware [virtual machine] [http://www.vmware.com] with a licensed 
but older copy of Win2k as a VM and another VM with my favorite linux distro, 
where I do all web work and the Win2k for MapInfo.
[do get a DualCore process so you can really do 2 things at once]
All works great including MapInfo and MapBasic [even on single core processor]

So, here are 2 methods of dealing with not having MapBasic and for FREE

1) goto ScriptBuilder and get it
http://www.volkoff.ru [it is a clean site and software despite the RU site]
click the download section and get ScriptBuilder v1.2
been using it since 1998 [v0.x]
Now you can write in VBscript, DELPHIscript, or any other scripting engine you 
have installed on your peecee, even PERL or PYTHON
Just a 4.1 meg download 
fits the definition FREE and OPEN software but no SOURCE code
no registration no reboot
just works
download once, install on all machines, put SBA [source code] in a 
shared/server folder for all to use [or install the run-time and link the SBA 
to it]

2) goto Microsoft and get VB 2005 Express
http://msdn.microsoft.com/vstudio/express/vb/download/
This is a small shell downloader and gets a hefty 311+ meg install or worse go 
ahead do SQL Express for another 55meg
It requires uninstalling SQL 2005, VB 2005 and DotNot v2 first and will need 
2-4 reboots to get done
The worst is you have to create a junk-mail account and register
Make everyone eat the bad fortune and download/instal their very own 
version VB [wreck your bandwidth and email server registration/adware]
Or install all the run-time junk and polute their machine with more junkware
Good Luck Your On Your Own From Here [GLYOYOFH]

Bite my tongue and rip my nails out with pliers,
I put this M$ warez program on my clean 'dohze machine
[have not had VB5 installed for years]
but it does work and so does SB

So in the spirit of FREE and OPEN which is about choice
you pick from the above
4meg and keep you first born or 350++meg and get cruicified by M$

Below is a test code example that will work in both SB and VB
There are more VB examples on my website
http://www.wap3.com/download
and you can get my project folder for SB
[unzip to a folder named projects under your SB install folder]
http://wap3.com/download/sb-projects.zip

Well maybe one weekend [14 day today] I'll put a whole section on the web 
about using SB as an alternative along with other stuff the is OPEN.


  BEGIN TEST CODE  
'**'
' Application: AttachMI'
' Created: 07/04/2001  '
'**'

dim miMap
dim miStr

Sub Button1Click(Sender)
   Set mimap = GetObject( , MapInfo.Application)
   mimap.do Print chr$(12)
   miStr=Print VB TEST--Attach To MI 
   mimap.do miStr
   mimap.do DIM x AS Integer
   mimap.do x=123
   mistr = mimap.eval(x)
   mimap.do PRINT +miStr
   mimap.do UNDIM x
   set mimap = nothing
End Sub

==  END TEST CODE ==

On Wed 06 Sep 2006 08:12, Hughes, Colleen / Don Mitchell wrote:
 Thanks Bill, Uffe, and Trey,

 Looks like I'm stuck.  This job is only a temporary to fill in for
 someone else, and they don't like programming.  So the only programming
 tools I have are the free ones like JAVA, C#, etc, which I don't know
 well enough to integrate into MapInfo.  I know enough VB to get by, but
 I don't have a license for it.  I think I should look into getting a
 license for at home so I don't lose what skills I have.

 In the mean time, I can create some small bits of code that will help in
 other tasks and they will work in the MB window.

 Trey's suggestion helps, but I was hoping to be able to just run the
 code once and have done with it.  There are a lot of records and
 different object styles to apply.  I thought I would try to make things
 easier for my predecessor when she returns.

 Anyways, thanks again.
 _
 Don Mitchell

 GIS Technician (IMS)
 City of St.Thomas

 Message: 3
 Date: Sun, 3 Sep 2006 07:48:10 +0200
 From: Uffe Kousgaard [EMAIL PROTECTED]
 Subject: Re: [MI-L] Looping in MapInfo MapBasic Window
 To: mapinfo-l mapinfo-l@lists.directionsmag.com
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=iso-8859-1

  From: Hughes, Colleen / Don Mitchell
 
  Is it possible to perform looping or to test for things (like If Then)
 
  from the MapBasic window.

 No, but you can use automation, i.e. use VB for instance for calling the
 mapbasic commands and then use VB logic for looping and if-then.
 Examples on how to do this, can be seen in the mapbasic folder, but I'm
 not sure how to get access to that without mapbasic?

 Kind regards

 Uffe Kousgaard

Re: [MI-L] Looping in MapInfo MapBasic Window

2006-09-03 Thread Trey Pattillo
leaving the mapbasic window open is one of the best ways to learn what is 
going on behind the scene

a big drawback is that some the most complex commands, such as changing an 
object style [in your case], is not displayed
so you will need some help there and also a list of the command values from 
mapbasic definition file [.def] to reference such as for ObjectInfo(obj, 1) 
returns the object type where 1 is refered to as OBJ_INFO_TYPE

you can do some basic loop if your work is on a small amount of rows which 
might be in your case of processing for OverDue records
I'm talking about on doing this one something less than maybe 100 records

you just highlight all the rows to run and hit enter

'[highlight these only 1 DIM per line though]
Dim bfpobj As Object
Dim bfpsymbol As Symbol
select * from OverDue where Due_Tested = NO BFP into NoBFPtab
fetch first from NoBFPtab
'[end highlight above]

'[highlight these and just keep hitting enter] [would be the DO/WHILE line]
bfpobj = NoBFPtab.obj
Alter Object bfpobj Info OBJ_INFO_SYMBOL, bfpsymbol
Update NoBFPtab Set obj = bfpobj
Fetch Next From NoBFPtab
'[end highlight above] [would be the END/WEND line]

'[do these when finished]
UNDim bfpobj
UNDim bfpsymbol
'[end finish]

you can also use a integer counter in the same manner
DIM iRow as Integer
'[begin highlight]
iRow=1
'
'..processing statements here
'.. like FETCH Rec iRow From TableName
'
iRow=iRow+1
'[end highlight]
UNDim iRow

The UNDIM is used only in MB-Window and Integrated Mapping [VB,Delphi,...]
If you do not run it if another application later on tries to use it the 
application will fail [already defined] and also if a program is running and 
you happen to pick a name that is in use your DIM will fail and using UNDIM 
will cause the application to fail [not available for app]

You can save the MapBasic Window to a text file but the MB-Window does not 
have a load from so open the text file in NotePad and copy/paste to the 
window to have reusable code

Also in SQL Query you can save/load the query, although the file has a special 
format it is text and makes sense so you can use it as a template, of course 
if the MB-Win is open then you get the full command.


On Thu 31 Aug 2006 08:35, Hughes, Colleen / Don Mitchell wrote:
 Hi All,

 I'm slowly trying to learn MapBasic with the MapBasic window in MapInfo
 and the User Guides for MapBasic that I downloaded.  I'm trying to
 change the symbol for a selection using mapbasic.  When I look up the
 commands in the reference guide, it states that the Do While statement
 isn't supported in the MapBasic window, nor is any of the other looping
 statements nor is the If Then statement.  Is it possible to perform
 looping or to test for things (like If Then) from the MapBasic window.

 I don't have Mapbasic, other than from within MapInfo, but thought I
 could write some simple scripts to automate some of the repetitive tasks
 I have and just copy them into the mapbasic window to run them.

 The code that I have so far:

 
 -
 select * from OverDue where Due_Tested = NO BFP into NoBFPtab
 Dim bfpobj As Object, bfpsymbol As Symbol
 bfpsymbol = MakeSymbol(34,0,6)
 Fetch First From NoBFPtab
 Do While Not EOT(NoBFPtab)
 bfpobj = NoBFPtab.obj
 Alter Object bfpobj
 Info OBJ_INFO_SYMBOL, bfpsymbol
 Update NoBFPtab Set obj = bfpobj
 Fetch Next From NoBFPtab
 
 -

 Any help is be appreciated.
 Don

-- 
Trey Pattillo

Failure is not an option
It comes standard with all Microsoft products.
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: SUM: [MI-L] Memory error converting DWG with Universal Translator

2006-08-06 Thread Trey Pattillo
Thanks David
I have run into this with my cities [others] only having digital data that is 
done by a contracted engineering firm, of which the head locomotive driver 
[train engineer] has absolutely no clue about what GIS is.

Also, a note to Bill T
Is the server suffering seizures again?
This post and yours [SearchInfo()] just came in and Kontact marked them 
as yesterday 21:20 and 13:18 respectively, and this morning I got about 5 
that were as far back as Tuesday.


On Sat 05 Aug 2006 21:20, David Reid wrote:
 Well, not really a SUM. No replies and no fix found but, I figure there's
 always another way to skin a cat.

 As the DWG would open in the Autodesk Trueview cad file viewer, but would
 not open in Mapinfo or even Corel Draw, I suspected some newer file format
 change that UT could not handle.

 Found a DWG to DXF file converter at AnyDWG http://www.anydwg.com/ which
 would read the DWG file and allow me to output it to DXF which I specified
 an older file version.

 This works quite smoothly. Converted the DWG to DXF's, and I have
 re-imported the DXF's appling the needed transformation to my desired
 projection and all is well with the world now :)

 I found the limited evaluation version of AnyDWG at
 http://www.freedownloadscenter.com/Multimedia_and_Graphics/Misc__Graphics_T
o ols/DWG_TO_DXF_Converter.html


 David Reid
 Colbert County 9-1-1
 Colbert County Alabama


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of David Reid
 Sent: Friday, August 04, 2006 3:00 PM
 To: mapinfo-l@lists.directionsmag.com
 Subject: [MI-L] Memory error converting DWG with Universal Translator


 Greetings list,

 I've never in all the DWG conversions I've done, run across this problem. I
 guess it could be a corrupt DWG file but it opens fine in the Autodesk
 Trueview viewer.

 Universal Translator keeps producing the following error with a dialog
 entitled SmartHeap Lirbrary

 Out of memory. Please free some memory, then choose retry.

 I've rebooted the pc to make sure any rampant apps have cleared memory but
 I still get this error message.

 I've tried translating to both *.tab and mid/mif still no luck.

 The drive partition this dwg is being converted on has 3.6 gb of free
 space, the temp directory on another partition of nearly 1 gb of free
 space.

 The last few lines of the mutlog read:

 STATUS: AutoCAD Reader: AutoCAD Load is 96% complete

 abnormal program termination
 Unable to generate mapping file.



 Anyone seen this before and found a fix?

 Many thanks if you can help,
 David Reid

 --
 Outgoing mail is certified Virus Free
 Checked by AVG Free Edition.
 Version: 7.1.394 / Virus Database: 268.10.7/409 - Release Date: 08/04/2006



 ___
 MapInfo-L mailing list
 MapInfo-L@lists.directionsmag.com
 http://www.directionsmag.com/mailman/listinfo/mapinfo-l

-- 
Trey Pattillo

Failure is not an option
It comes standard with all Microsoft products.
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] FW: From To rd Centre ines

2006-08-03 Thread Trey Pattillo
I wrote a mabasic app over the last few months to do what our 911 mapping 
vendors do to validate the customers maps.
I think this is what you are looking for.
Finds where streets intersect but are not broken, also where the street is 
very close [uses internal MI setting of snap] and a few other things.

Note that the vendors are actually using ESRI maps and apps.
Some do better some worst some different and do/skip tests others do.

This is my hack at what they do.

It works well, it is beta, it does miss some problems

You just keep running it and fixing the problem where stops at then run again

The MB file is downloadable, so if you can fix issues or add to this 
functionality, please send me back the MB so that it benifits all
[will add to the website so it is available in the future].

Please us a right-click and Save Link As... otherwise your browser will open 
the MB and if you do copy/paste you will have a mess.

Source Link:
http://www.wap3.com/download/unbrokenintersect.mb

MBX Link:
http://www.wap3.com/download/unbrokenintersect.mbx

-- 
Trey Pattillo

Failure is not an option
It comes standard with all Microsoft products.

On Thu 03 Aug 2006 18:47, Alex Schulz wrote:
 Sorry to send it again But here is the revised explanation



 Is there any one who knows of a tool that can extract connectivity of
 polylines where the start or end node is within close proximity of the
 start or end node of one or multiple polylines. Similar to a rd network.
 I want to extract the attribute that a line starts from near one or more
 polylilne IDs. I also have FME as An option to use.



 Yours Sincerely

 Alex Schulz



 Life is short. Love with abandon. Let them be!

   _

 From: Alex Schulz
 Sent: Friday, 4 August 2006 9:23 AM
 To: mapinfo-l@lists.directionsmag.com
 Subject: From To rd Centre ines



 Is there any one who knows of a tool that can extract connectivity of
 polylines that are within close proximity of one or more polyline like a
 rd network. I want to extract the attribute that a line starts from
 adjacent to one  or more lines ID and ends at one or more polyline ID. I
 also have FME as An option to use



 Yours Sincerely


 Alex Schulz
 GIS Coordinator

 Queanbeyan City Council
 Ph: (02) 6298 0110 (Private) Mobile: 0407 225 737
 Fax: (02) 6297 4044
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

 Life is short. Love with abandon. Let them be!!

 Aim for the target and you are guaranteed to miss. Aim for the bullseye
 and you are guaranteed to hit the target. A Schulz 1982




 +++
++ This message is intended for the addressee named and may contain
 confidential information. If you are not the intended recipient, please
 delete it and notify the sender. Views expressed in this message are those
 of the individual sender, and are not necessarily the views of Queanbeyan
 City Council, unless otherwise stated. For the purposes of the Copyright
 Act, the permission of the holder of copyright in this communication may be
 taken to have been granted, unless stated otherwise, for the copying or
 forwarding of this message, as long as both the content of this
 communication and the purpose for which it is copied or forwarded are work
 related.
 +++
++

___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] OT - DiaBuilder2000 File Association Problem

2006-06-20 Thread Trey Pattillo
So what other extension would you want that will in the future conflict with 
some other newly installed software?

How about BDP?
Nope, went to http://filext.com and it is a Visual Studio dotNET Project.
I know some you use VS.

Can't do DB2.

Can break the #.3 format and do DB2KP.

Let me know and hopefully I can recompile it, I've changed, and cloned 
hardware severa times and have not checked if IDE things are still working, I 
now some things got broken.





On Tuesday 20 June 2006 10:48, Bill Thoen wrote:
 The *.prj file normally associated with DiaBuilder 2000 project files seems
 to also be normally associated with other software and I keep having to fix
 it with the Windows Explorer/Tools/Folder Options/File... to reset the
 the file association to run DiaBuilder2000.exe with any *.prj file.

 However, I can't get this to work from a WinXP normal user account. It
 works fine for my admin account but not for the one I normally do
 development in. The DiaBuilder icon doesn't appear in the program list, and
 when I choose Browse and pick it, absolutely nothing happens. It won't
 associate, nor does it give me an error.

 This account can execute DiaBuilder2000.exe no problem, but I'm getting
 tired of manually launching it instead of just double-clicking on the prj
 file. Anyone else here using DiaBuilder2000 to build mapbasic dialogs
 know how to fix this? Is it a Windows thing, or something peculiar to
 DiaBuilder?

 ___
 MapInfo-L mailing list
 MapInfo-L@lists.directionsmag.com
 http://www.directionsmag.com/mailman/listinfo/mapinfo-l

-- 
Trey Pattillo

Failure is not an option
It comes standard with all Microsoft products.
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] Interactive Maps on the Web

2006-06-07 Thread Trey Pattillo
And Discovery costs how much?

You might want to have a look here
http://www.xml.com/pub/a/2005/08/10/ka-map.html
AJAX is what Google and Yahoo are using it is at no costs or much less that 
others.

On Wednesday 07 June 2006 11:13, [EMAIL PROTECTED] wrote:
 Hi Lacey,

 Discovery will work and you can host the map library right from your own
 web site server.  You can find out more about it here including a free
 trial so you can try it out.

 http://extranet.mapinfo.com/products/Overview.cfm?productid=1672

 Greg


 Greg Donahue  Senior Marketing Manager


 One Global View |Troy, NY 12180

 Phone 518.285.6536

 [EMAIL PROTECTED]







 Chan, Wai [EMAIL PROTECTED]
 Sent by: [EMAIL PROTECTED]
 06/07/2006 11:39 AM

 To
 mapinfo-l@lists.directionsmag.com
 cc

 Subject
 [MI-L] Interactive Maps on the Web






 Dear Listers,

 I use MI Pro 8.0 to create quite a number of thematic maps. I would like
 to know, if I want the thematic maps be accessed interactively from the
 library?s web site (basic functions like viewers can turn layers on and
 off, zoom in and zoom out), what do I need (in terms of software, hardware
 and knowledge) to make this happens? I just want to check the feasibility.


 I checked the MI Discovery but it seems to me that the maps have to be
 accessed from a MapInfo site, not your own web page, right? Any help would
 be much appreciated (I am only a MI Pro user. Don?t know much about web
 publishing or application development though). Thanks very much in
 advance.

 Lacey

 Wai Sze (Lacey) Chan
 Information and Data Analysis Librarian
 New Americans Program
 Queens Library

 89-11 Merrick Blvd.
 Jamaica, NY 11432

 E-mail: [EMAIL PROTECTED]
 TEL: 718-990-8656
 FAX: 718-297-3404
  ___
 MapInfo-L mailing list
 MapInfo-L@lists.directionsmag.com
 http://www.directionsmag.com/mailman/listinfo/mapinfo-l

-- 
Trey Pattillo

Failure is not an option
It comes standard with all Microsoft products.
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] U.S. City Boundary Files

2006-05-31 Thread Trey Pattillo
Try the state Dept of Transportation
I'm in Texas so http://www.txdot.state.tx.us
this link has links to all the state dot's
http://www.txdot.state.tx.us/othertrans/othertrans.htm

this work for texas [googled txdot ftp]
ftp://ftp.dot.state.tx.us/
getting a directory
but 
ftp://ftp.dot.state.al.us/
hits a user /  password

also here we have Texas Natural Resourse Information System [TNRIS]
http://www.tnris.state.tx.us
TNRIS has downloads at ftp://www.tnris.state.tx.us

so working with google this might help
to use DOT or NRIS [spelled out] and the state

If you would like some specific information from our 9-1-1 GIS around Corpus 
Christi, TX drop me a mail at the office [EMAIL PROTECTED] [as a gov we have 
to abide by the Freedom of Information Act]


On Wednesday 31 May 2006 19:42, Frank Aaron (TX/EUS) wrote:
 Hi All,

 Would anyone have an idea as to where one might download boundary files for
 U.S. cities - I found .shp and .e00 files for Census 2000 Consolidated
 Cities (Cartographic Boundary Files):
 http://www.census.gov/geo/www/cob/cc2000.html#e00
 http://www.census.gov/geo/www/cob/cc2000.html#e00 . But they turned out
 to have very few citie's boundaries in the files...Best regards,

 Frank Aaron, MSc. Physics, MSEE
 Staff Wireless Systems Engineer, RF Engineering Services
 Ericsson USA
 Service  Solutions Operations, NA
 Tel:  (972) 583-0112
 Fax: (972) 583-2273
 Mobile: (972) 679-9291
 mail to: [EMAIL PROTECTED]

-- 
Trey Pattillo

Failure is not an option
It comes standard with all Microsoft products.
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] Integrated Mapping - GUI

2006-05-31 Thread Trey Pattillo
from the MapBasic help
[Do you have a F1 key?]
Under the INDEX TAB
  reparenting windows

[quote]
You cannot re-parent MapInfo's ButtonPads (toolbars). If you want your 
client program to have toolbar buttons, you must create the buttons in 
the language you are using. For example, if you are using Visual Basic, 
you must create your toolbar buttons using Visual Basic.
[/quote]

Note, all other windows, browers/info/message/etc can be reparanted.

On Wednesday 31 May 2006 01:12, Alvin Ng wrote:
 Hello All,

 Something about GUI in Integrated Mapping

 1.
 I was wondering is it possible to create a Buttonpad in Integrated Mapping?

 In MapBasic, we can create a buttonpad as follows
 Create ButtonPad Utils As PushButton

 In Visual Basic, i tried the following but nothing happens ie: the
 buttonpad didn't appear mi.do Create ButtonPad Utils as PushButton

 Did i miss out anything here?

 2.
 I saw that it is possible to add a component called Map OLE Control
 Module. I've added this to the project and when i run it, mapinfo standard
 toolbar appears but nothing happens when i click on it. May i know this
 module is of what use?

 Thank you all
 _
 Enter the Windows Live Mail beta sweepstakes
 http://www.imagine-msn.com/minisites/sweepstakes/mail/register.aspx

-- 
Trey Pattillo

Failure is not an option
It comes standard with all Microsoft products.

___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] MBX documentation

2006-05-30 Thread Trey Pattillo
I'll chime in here..

I never created anything to replace MapBasic Compiler,
with MB-Coder, just an editor that beat the heck out of MB at the time.
Of course now days there are other editors that do the same thing I did, 
create a *run link* to MB and tell it to comile the MBX.

As far as DiaBuilder2000, it is nothing more than a way to *visually* place 
your controls,  like the website says how big is a Dialog Unit anyway?
Yes you can do some simple coding, but that was where MB-Coder came to play, 
and I'll cut my free money in the mail by making this statement - after 
creating you DB2k project you can copy and paste the code for the control 
dialog into your MB code.

My personal feelings, MI Corp learned from M$ how to steal all your money.
50% upgrade on 0.5 year for nothing but eye candy, but since all the issues 
are well documented here I'll not wake the sleeping giant.
.bzt.wrong answer, thanks for playing, you can collect your 
consolilation prize going out the back door.

And yes, I *highly* support Linux, Free/Open Software and my latest venture is 
getting VMware up on Linux with a VM of Win2k.  I know MapInfo has no problem 
with this and the challenge is the other GIS person [DHS-WMD] uses ESRI.

For all my heavy UI work, I use Delphi - my favorite language for much longer 
than MB - and often breaking my rule of letting MI do the mapping work by 
coding it integrated [second part is let VB/Delphi/C--/Jiva/etc do the UI 
which it is really good at].

Back to work for now, writing an extraction program for the mail server to 
recover mail history for the last 3 weeks for the WMD-DHS [Wasted Money Dept 
of Dept of Homeland in-Security] blew a 6 month old laptop harddrive [2 time 
they have done this in 3 years].


On Tuesday 30 May 2006 10:40, Joutsiniemi Anssi wrote:
 Dear Bill,

 I appreciate you comment very much, and it is exactly the thing I've been
 worried about all these years. Naturally encouragement for stealing is not
 the point in here...

 The basic dilemma as I see it, is that MapBasic hasn't really been
 developed for several years. Trey Patillo has done some major job to
 provide some alternatives, but it all seems to end up in compling the
 source code itself. The biggest problem rises, because I guess MBX file was
 in a first place ment to be decompilable! It is really surprising that the
 compilation process only looses the comments of the source code. As you
 know even the original variable names, line numbers etc. remain in MBX's.

 So once you give information for compiling you actually open the gate other
 way too. It's unavoidable drawback from this nearly looseless compiling. I
 see the future of MB as a useful tool for creating UI, but I guess there is
 still much more left.

 Have to reconsider the pros and cons.

 Take care,
 Anssi

 

 Speaking as a MapBasic developer who has a considerable investment in
 MapBasic applications and has clients who have invested even more to pay
 me to build applications for them, I see no real advantage to releasing
 information to the public about how to decompile an MBX. If you have
 lost your source, and can prove the MBX is yours, Joe Bolian of
 Stopwatch Maps has offered to decompile it for you for free. Outside of
 recovering lost source code I see no good reason to empower any yahoo
 with a tool to open up my code like a can of beans. It's not *that* easy
 to create a decompiler, and I wouldn't want to see anyone who can't do
 it just given the information to make it easy to steal my code and
 compromise my clients' investments. By giving away the secrets you
 soften up the environment for anyone to build a serious project based on
 MapBasic and will only bring about its end that much quicker.

 I think that MapBasic has at least a couple more years of useful
 commercial life to it, and it is very likely that old MBX applications
 will still run in the .NET environment for years beyond that. Of course,
 if your goal is to destroy MapBasic as a tool to build commercial
 applications, and force us all to move to more advanced languages and
 techniques, then go for it. I would abandon MapBasic pretty fast as a
 development tool if a decompiler was made available to the public. And
 for those who can't move on to more complicated and expensive software
 development solutions, you would simply be exposing them to all sorts of
 abuse from theft of their ideas up to and including loading a virus into
 thier MBXs.

 What possible good would it do to make sorcerer's apprentices of anyone
 whose heart has not been purifeid by the long quest to learn the lore
 for themselves? ;-)

 - Bill Thoen


 ___
 MapInfo-L mailing list
 MapInfo-L@lists.directionsmag.com
 http://www.directionsmag.com/mailman/listinfo/mapinfo-l

-- 
Trey Pattillo

Failure is not an option
It comes standard with all Microsoft products

Re: [MI-L] mi.Do vs mi.Eval

2006-05-28 Thread Trey Pattillo
Before I start...I have some downloadable files at the website http://wap3.com
look in the Download section and some others examples in MapBasic  Code

DO is like a SUB in that it only does something
you are telling MI [via MB commands - and only those that can be used in the 
MBwindow - ie, no loops, if-then, etc]
so considering you example that you perviously issued mi.DO(DIM s_table AS 
String) and you have declared [not required in VB but is programming *best 
practice*] s_table in you code then either way will work

EVAL is like a FUNCTION in that it returns a value
**NOTE it only returns a string value

How I describe Integratation and what goes on is
Let MapInfo do what it does best -- mapping 
and your code do its best -- a better user interface or high level number 
crunching.

Having said the above I would DIM all variables that are going to do heavy 
processing via DO(DIM x AS String) so that you avoid the overhead of 
passing that data back to your code.
Only do an EVAL when the data is something the user needs to know and 
manipulate such as a table name [your example] 

You MUST use DO(UNDIM variable-name) or it will stay locked in MI which can 
create some debugging [code crashes before UNDIM]
You can use the MapBasic Window to UNDIM them but if the list is long it is a 
real pain

small example
[I write in Delphi so my VB syntax my be incorrect but you'll get the point]

create a form with a list box [ListBox1] and a button with below code in the 
click event of the button

DIM x AS Integer
DIM i as integer
CONST Tab_Info_Name 1

x = INT(mi.EVAL(NumTables()))
FOR i = 1 to x
  ListBox1.Items.Add(miMap.EVAL(TableInfo( + STR(i) + , + Tab_Info_Name 
+) )
NEXT


On Sunday 28 May 2006 01:48, Alvin Ng wrote:
 Hello All,

 This question is pertaining to Integrated Mapping.

 I was wondering
 1) What's the difference between mi.Do and mi.Eval and
 2) When to use which one? Eg: i can use mi.Do(s_table = PathToTableName$(
 )) and i can use s_table = mi.Eval(PathToTableName$( ))

 If there's any examples/guidelines to illustrate the difference, is greatly
 appreciated. Presently, i'm using VB6 and MapInfo 7.0

 _
 Join the next generation of Hotmail and you could win the adventure of a
 lifetime
 http://www.imagine-msn.com/minisites/sweepstakes/mail/register.aspx

-- 
Trey Pattillo

Failure is not an option
It comes standard with all Microsoft products.
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] Integrated mapping and MapBasic.bas

2006-05-28 Thread Trey Pattillo
you can not directly add MapBasic.DEF directly to any language code
yes, MB is similiar to VB but there are differences and the structure of the 
DEF is not correct for VB
you have to copy it to a VB correct file and then edit the syntax

the MB format is
 DEFINE Name Value
and the VB format is
 CONST Name = Value
[both have string Values quoted]

Get a good *free* Text Editor such as 
EditPad http://www.editpadpro.com [get the free one EditPadLite]
PSPad http://www.pspad.com/en/ [has a VB highlighter that will help with MB]
either of these has excellent search and replace capabilites to 
reformat/rename a MapBasic.BAS file to use in mapping

of course if you just have a few *defs* then just copy/paste in to your app 
and reformat for VB

a good place for free/inexpensive software that is clean or *only does what 
the TOC/TOS/EULA says is http://lists.thedatalist.com


On Sunday 28 May 2006 10:08, Alvin Ng wrote:
 Hello All,

 May I know what's the correct way to include MapBasic.bas to a Visual Basic
 project?

 I have added a module and imported the MapBasic.bas to the project but an
 error dialog pop-up saying: No creatable public component detected. Just
 wondering must I change to activex exe, standalone exe or something?

 Sorry for trivial question here, but i already tried searching the answer
 in the mailing list and on the web to no avail. If possible, please do give
 a step by step way of adding the MapBasic.bas to a VB project. I'm a
 totally novice to this.

 Using VB6 and MapInfo 7.0

 Thank you

 _
 Join the next generation of Hotmail and you could win the adventure of a
 lifetime
 http://www.imagine-msn.com/minisites/sweepstakes/mail/register.aspx

-- 
Trey Pattillo

Failure is not an option
It comes standard with all Microsoft products.
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] Determine angle and create line based on angle

2006-05-19 Thread Trey Pattillo
Hi,

You can get my TaxMap application here
http://www.wap3.com/download/index.shtml#taxmap

It's a zip file with mbx, and source
Must use Lat/Lon maps
Do not use on layers that have data as the data will be lost
Most of the functions for data are in FixLine

You can pull and source that you want but if you find something please let me 
know so that I can get it fixed

On Friday 19 May 2006 11:37, Behrmann, Jae wrote:
 I'm looking for samples of MapBasic code that will do one or both of the
 following:

 1. Given the latitude/longitude of the starting and ending point of a
 line, calculate the angle of the line (what is the line's angle or
 bearing?)

 2. Given the latitude/longitude of the line's staring point, the line's
 angle (or bearing), and the line's distance in kilometers (or miles),
 calculate the latitude and longitude of the ending point of the line.

 Any examples of MapBasic code that are even remotely related to these
 tasks would be appreciated.

 Thanks,
 Jae Behrmann
 Consultant
 BearingPoint, Inc.
 Real Estate and Capital Asset Solutions
 7301 N. State Highway 161, Suite 400 Irving, TX 75039
 972-837-8936 Mobile
 [EMAIL PROTECTED]
 www.bearingpoint.com

 ***
 The information in this email is confidential and
 may be legally privileged Access to this email by anyone other than the
 intended addressee is unauthorized. If you are not the intended recipient
 of this message, any review, disclosure, copying, distribution, retention,
 or any action taken or omitted to be taken in reliance on it is prohibited
 and may be unlawful. If you are not the intended recipient, please reply to
 or forward a copy of this message to the sender and delete the message, any
 attachments, and any copies thereof from your system.
 ***


-- 
Trey Pattillo

Failure is not an option
It comes standard with all Microsoft products.
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] More on PDF Batch Printing

2006-04-07 Thread Trey Pattillo

you will have to translate the below standard VB code to MB
wrap it in a while...end and wait for the count to drop below a certain point, 
or conversely keep printing as long as count is less that trigger point

=  BEGIN CODE 
Private Declare Function OpenPrinter Lib winspool.drv Alias _
OpenPrinterA (ByVal pPrinterName As String, phPrinter As Long, _
pDefault As Any) As Long

Private Declare Function ClosePrinter Lib winspool.drv (ByVal hPrinter _
As Long) As Long

Private Declare Function EnumJobs Lib winspool.drv Alias EnumJobsA _
(ByVal hPrinter As Long, ByVal FirstJob As Long, ByVal NoJobs As Long, _
ByVal Level As Long, pJob As Any, ByVal cdBuf As Long, pcbNeeded As _
Long, pcReturned As Long) As Long

Sub Form_Load
     'KPD-Team 2001
     'URL: http://www.allapi.net/
     'E-Mail: [EMAIL PROTECTED]
     Dim hPrinter As Long, lNeeded As Long, lReturned As Long
     Dim lJobCount As Long
     OpenPrinter Printer.DeviceName, hPrinter, ByVal 0
     EnumJobs hPrinter, 0, 99, 1, ByVal 0, 0, lNeeded, lReturned
     If lNeeded  0 Then
         ReDim byteJobsBuffer(lNeeded - 1) As Byte
         EnumJobs hPrinter, 0, 99, 1, byteJobsBuffer(0), lNeeded, _
lNeeded, lReturned
         If lReturned  0 Then
             lJobCount = lReturned
         Else
             lJobCount = 0
         End If
     Else
         lJobCount = 0
     End If
     ClosePrinter hPrinter
     MsgBox Jobs in printer queue:  + CStr(lJobCount), vbInformation
End Sub
=   END CODE  

On Friday 07 April 2006 11:09, Bill Thoen wrote:
 I've written an MBX application that creates maps in a batch mode and it
 seems to get ahead of the Adobe PDF spooler after it prints a few tens of
 maps, wedging the machine. Does anyone know how I can sense when the
 spooler is full and to hold up my application until there's room for more?
 I do have access to registry keys if that's an option. Or can I use a DDE
 process to listen to something?

 - Bill Thoen

 ___
 MapInfo-L mailing list
 MapInfo-L@lists.directionsmag.com
 http://www.directionsmag.com/mailman/listinfo/mapinfo-l

-- 
Trey Pattillo

Failure is not an option
It comes standard with all Microsoft products.

___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] MapBasic Bitwise Operators

2006-03-08 Thread Trey Pattillo
MB does not do true bit operations
I have a dll with a whole lot of delphi functions built in it
you can get it here http://www.wap3.com/download/ultramsg.zip

does string math like s=(5+2)*3 and gets back the answer
does HTLM output  better than that dumb message window
and a lot more

On Wednesday 08 March 2006 17:06, Ian Tidy wrote:
 Hi All,

 I am wanting to use bitwise operators in MapBasic, but I can't find any
 information on them.

 Does anyone know if the exist and how to use them, or do I need to write my
 own functions?

 Cheers Ian

 Ian Tidy
 GIS Administrator
 Works Asset Department
 Napier City Council
 Hastings St, Private Bag 6010, Napier, New Zealand
 Phone +64-6-835-7579 Ext. 8115
 Fax +64-6-835-7574
 mailto:[EMAIL PROTECTED]
 http://www.napier.govt.nz http://www.napier.govt.nz/




 ##
 Attention:
 This e-mail message and accompanying data may contain information that
 is confidential and subject to legal privilege. Any information
 provided is given in good faith. However unless specifically stated to
 the contrary, Napier City Council accepts no liability for the
 content of this e-mail or for the consequences of any action taken on
 the basis of the information provided, unless that information is
 subsequently confirmed in writing. If you are not the intended recipient,
 you are notified that any use, dissemination, distribution or copying
 of this message or data is prohibited. If you received this e-mail
 message in error, please notify us immediately and erase all copies
 of this message and attachments. Thank you.

-- 
Trey Pattillo

Failure is not an option
It comes standard with all Microsoft products.
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] points and text in same TAB - how to separate text and join attributes to points

2006-02-25 Thread Trey Pattillo

first the 'autocad-elevation' is a bogus value, but it may have something to 
do with the object type, but is useless

now.
restructure the table and add a field 
call it TEXT with 50 char [check what you need] size
[be sure to use your name in example -- TEXT]

copy below and paste in the MapBasic Window
change TableName to the name of you table
chage TEXT to what you used above
highlight the lines and hit enter

- begin copy paste ---
select * from TableName where str$(objectinfo(obj,1)=10 into work
browse * from work
update work set TEXT=objectinfo(obj,3)
- end ---


On Saturday 25 February 2006 07:30, Nebojsa Pesic wrote:
 Hello,

 i  got  one  table exported from autocad with points and text inserted
 beside points which represents elevations. There are 2 problems.
 I  want  only to select points or text to separate each object type in its
 own layer (text and  points).  How  could  I  define  some query (which
 criteria ?) or is there a tool for something similar ?

 After  that I will try to assign text atributes as elevation to points. I
 dont know, maybe this  problem  was  mentioned before zillion times but
 what could be the best (or easiest, fastest) way to do this ?

 thanks

-- 
Trey Pattillo

Failure is not an option
It comes standard with all Microsoft products.
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] How to remove carriage return from row?

2006-02-14 Thread Trey Pattillo
try holding down ALT then on number pad do 0013 
the box are unprintable, often called contol codes, characters
and vary depending on the fonts in use.

Also a full line stop for window is #13#10 for called CrLf
Carriage Return /  Line Feed 
In a hex editor you will see 0D 0A

I may be backwards here but unix uses #10 and mac uses #13 and only the single 
character

Try some of the other ALT+ up to 32 [space]
you can get some neat smiles and rude jestures.
32..127 are the ASCII printable characerts
128..255 are the old dos line drawing [boxes] and depending on the font other 
funky characters -- called the extended character set

-- 
Trey Pattillo

Failure is not an option
It comes standard with all Microsoft products.

On Tuesday 14 February 2006 08:30, D. Peter Berical wrote:
 Hello! I have a MapInfo TAB file with a column containing boxes for a
 carriage return. I want to remove the boxes and replace them with a  ,
 . I've tried the Search and Replaces using Chr$(13), but that tool only
 recognizes text. I can SQL these records using Chr$(13), but removing them
 is another story. Does anybody have any experience with this?

 Thanks!

 Peter


 ___
 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


Re: [MI-L] Projection Coordinates

2006-02-04 Thread Trey Pattillo
I see the server has been on a hiatus lately, again.
I thought it on my end, had some 65 come in this morning back to mid Dec 2005


-- 
Trey Pattillo

Failure is not an option
It comes standard with all Microsoft products.


On Saturday 04 February 2006 18:53, Patrick Cunningham wrote:
 Tom,

 This post appears to be from Jan 9th.  Did you ever get this answered?  I'm
 sure you could figure this out with our free evaluation version of the
 geographic calculator:

 http://www.bluemarblegeo.com/products/calculator.php


 Let me know if you still need help with this,

 Patrick

 Patrick Cunningham
 President
 Blue Marble Geographics
 397 Water Street, Suite 100
 Gardiner, Maine 04345 U.S.A.
 Phone: 207-582-6747 ext. 15
 Phone: 800-616-2725
 Fax: 207-582-7001
 Email: [EMAIL PROTECTED]
 Visit us on the World Wide Web!
 http://www.bluemarblegeo.com
 and
 http://www.beyondgeo.com

  Hi All,

 I have an ACAD file that I am trying to import into MapInfo and I am not
 sure what projection the file is in. The map content covers an area in
 Southwest Missouri and the coordinates look like 953697.42857142841,
 5363758.41.



 Do these coordinates look familiar to anyone?



 I know this is a pretty vague request but if I just had a clue, I could
 probably find the correct projection.



 Thanks TH

 ___
 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

___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] MI 32-bit vs. 64-bit hardware/OS

2006-01-26 Thread Trey Pattillo
Vista / LongNose or whatever, the best name will be DRM-Hell.
Never touched XPee [other than healing the sick]

Any 32-bit will work just fine on a 64-bit and I would pony up the 2x dollars 
on the processor and get an AMD X2 [dual core] with 2gig, drives don't really 
matter.  Now the BIGGIE -- do not use a PCIe graphics, they are not highly 
compatible on the drives especially if you do use linux, so get a motherboard 
with AGP [harder to find] or just use a good ol' PCI like a MX-4000 128meg.
Working only 1 app [ha] it can use both cores but with multiple apps it splits 
them [time, cpu ?] so no single app drags [might help on the MapBasic Apps 
hanging while doing something else but I have not tested -- so this is only 
in theory for MI]

Actually I'm now on SimplyMEPIS Linux [free at www.simplymepis.org]
or get a 64-bit version and let'r rip all for free
Then buy Win4Lin Pro 2.5 [www.win4lin.com] for $69 and use an old 'dohze 2000 
install under it.
[works also with XPee SP1 not SP2]
Now copy MapInfo [cd, network, 2nd drive] to the home directory, run it and 
set the registry stuff, and extract the tools registry from the previous 
use ['dohze] and then load it in to the w2k/win4lin registry.

If did not post this to the list but individual, what I had after the install 
of MEPIS was a jerky mouse in MI and other w2k apps.  Well after going to 
Mepis  Control Panel  Mouse and upping the mouse response from 60 [default] 
to 100 the mouse is working fine and now MI is completely workable including 
other progies I had to do a copy/hack because the installed died.  
All menu dialogs like file open and MI itself are somewhat slower to open but 
once the map[s] are open it is no worse that your slightly older [less 
capable] machine.

My skunk-works 'dohze box [AMD64 3500+ 2gig and dual SATA150 200gig] has 
still not be upgrade to dual boot linux or do the tray thing.  I have only 
fired it up about 5-6 times since October to copy files.

This box is my forensics rig with AMD 2700+ 784gig, 2 removable trays, a 
40gig Win2k and 40gig MEPIS in another one [in the boot tray now] + a 2nd 
tray to pop in drives from sick boxes for data recovery or healing 'dohze or 
could be used for backup and archiving or transfering, other than I transfer 
with a 160gig mounted in a ByteCC USB external case.  It runs Firefox and 
mail better than the black box does.

-- 
Trey Pattillo

Failure is not an option
It comes standard with all Microsoft products.



On Thursday 26 January 2006 10:36, Eric Johnson wrote:
 Having been away from GIS for several years, I haven't watched any news
 about what'll happen with MI and the move to 64-bit WinXP/Vista.

 I assume the 32-bit version will run fine on a 64-bit OS, right?  Does
 anyone know if there are plans for a 64-bit version of MI?

 I'm looking at new hardware, and while we'll certainly get a 64-bit
 chip, we may or may not put the 64-bit version of WinXP on it from the
 get go.

 -- Eric Johnson

___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] Hiding MB File

2006-01-05 Thread Trey Pattillo
don't include the source MB fileUNLESS
depends on the license you have chosen to release product [mbx] under.

if you have GPL'd it then you have might as well save yourself and the user 
the trouble of asking for it and give it to them up front
then there is the LGPL, Mozilla and Lesser Mozilla, and a good 100 others, all 
the way up to full proprietary it's secret code, and now that you know it's 
secret, I'll have sue you into oblivion.

Right now some politicians and lobbist should be able to run one through the 
PTO on A Method and Concept to bedazzle the user into believing it's raining 
while pissing on their leg.
but that is another issue 
1) smoke some funny stuff
2) get an idea [halucination]
3) file with PTO
4) $$ profit $$
5) goto #1
[the current system will eventually collapse under it's own weight]

I follow the SCO v IBM [vs, rest of the world] claiming everything Linux/Unix 
belongs to them and everyone owes them $ [groklaw.net]

Years ago I was told to patent, a real mechanical device I created, like it 
should be, then my uncle told everyone about it and danged if 6 months later 
it was on a trade industry magazine cover.

So proceed with caution, no one here is a lawyer, seek legal advice, and your
millage will definately vary.

In the words of Darl McBride, CEO of SCO
You use patents, trade secrets, copywrite, etc against people you don't know 
and use contracts against those you do [SCO/IBM is now only a contract suit]

BTW, since your sig is GIS Tech - Citywide Services, your employer *will own* 
everything you do on the clock and very possible what you do at home, and 
the US has precedence on that and AU/US have agreements to respect the 
Intellectual Poop-ertry of each other. [think Grokster, Napster, RIAA, MPAA]

um
well
sounds bad
good luck with that
[commercial about internet provider and viruses]


--Trey Pattillo


On Thursday 05 January 2006 20:07, Ellingham Morgan wrote:
 Hello Listers,

 Throughout my time of using MapInfo I have come across quite a few MBX
 utilities that don't have an MB file associated with them. I have
 developed quite a large program and it is beginning to get spread around
 a few businesses. Is there an easy way for me to hide the MB file as
 anyone with notepad and half a brain immediately has access to all of my
 code. I tried the help file but I didn't know what to start looking for.
 Can anyone point me in the right direction?


 Regards...



 Morgan Ellingham

 Citywide Service Solutions
 GIS Technician

 Level 1, 150 Jolimont Rd, East Melbourne

 Ph: (03) 9261 5065

 Mob: 0419 145 666

 Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]


 ___
 MapInfo-L mailing list
 MapInfo-L@lists.directionsmag.com
 http://www.directionsmag.com/mailman/listinfo/mapinfo-l

-- 
Trey Pattillo

Eye have a spelling chequer.
It came with my pea see.
It plainly marks for my revue 
Miss takes I can not sea.
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] Help with Object Functions

2005-12-25 Thread Trey Pattillo

According to your example
ObjectGeography(tablename.obj,OBJ_GEO_MINX )

it is not tablename.OBJ -- just TableName

direct code ---   = ObjectGeography(MyTableName...)
variable:  
DIM aTable as String
aTable = MyTableName
ObjectGeography(aTable...)


On Sunday 25 December 2005 06:09, Mahtab Alam wrote:
 Hi,

 Can anyone help me why I am getting a error message whenever I put a
 varibale ( that stores the table name) in any Object function e.g.

 MinX=ObjectGeography(tablename.obj,OBJ_GEO_MINX )  it doesn't compile but
 when I give any other name which i have defined it doesn't show any error.


 Regards
 Mahtab
 ___
 MapInfo-L mailing list
 MapInfo-L@lists.directionsmag.com
 http://www.directionsmag.com/mailman/listinfo/mapinfo-l

-- 
Trey Pattillo

Eye have a spelling chequer.
It came with my pea see.
It plainly marks for my revue 
Miss takes I can not sea.
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: SUM: [MI-L] Wandering Text Problem

2005-12-21 Thread Trey Pattillo
couldn't help myself on this one
I'm a little tired from being on working vacation til 2006
come on 03 Jan so I can go back the the office and rest

Bill T wrote:
 And I agree with you all -- why HASN'T this bug been fixed yet?
[and many others listed]

Well, that is because all of those ideas are owned by some Intellectual 
Property Venture Capitalist who wants mega-bucks for something obvious that 
the USPTO should have sent back the submittal stamped with go pound sand

or

maybe the gods of Troy will bestow upon us in v9.0...after your $$$that 
they had a sever case of Holidaymas, declaring Plausible Deniability, and  
forgot to put it in, while holding their fingers crossed behind their back 
and swearing it will be in a future release [ah, what release?]

I vote #2 . long live v6.5

-- Trey Pattillo

Eye have a spelling chequer.
It came with my pea see.
It plainly marks for my revue 
Miss takes I can not sea.
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: MI-L Free ware GIS program?

2005-10-03 Thread Trey Pattillo


This one if from the Forestry Division of Wisconsin
called fGIS [f from forestry]

here's the link
http://dnr.wi.gov/org/land/forestry/GIS/Applications/FGIS/

the pros/cons
--uses SHP files [use Univ Trans to drop as UTM]
--only in UTM projection
++just unzip and run the exe [written in Borland Delphi/C+]
++does not have to be installed and honk up your system
++does editing [select layer, click EditStart Editor]

big +++ create a folder under the root
install all your maps there
do the ESRI workspace thingy [startup default.tth file]
load your maps and save the workspace
NOW - just burn a CD of the whole folder [fGIS] and it
runs directly from the cd.

I'll be using it for my clueless technology challenged government 
people in 9-1-1 around the area and



Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322

| If you receive an email that says something like
| 'Send this to everyone you know,'
| pretend you don't know me.



[EMAIL PROTECTED] wrote:

One of our county game commissioners was asking me about a free and simple
computer program that would allow him to plot lat/lons and measure distance
between them.  Does anyone know of something out there that I can direct
him towards?  It would be a bonus if we could include some type of base map
in the background.  This would need to be something fairly straight forward
and easy to use.

Thanks,

Brian Van Druten
(Embedded image moved to file: pic15724.jpg)




-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 18097


-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 18111



Re: MI-L : MapInfo on a USB Flash Drive?

2005-09-09 Thread Trey Pattillo

it really is not that hard

1)
open regedit with startrun
find MapInfo in the software section of both
HKLM [local machine] and HKCU [current user]
highligh the MI section on the left
then do RegistryExport Registry File
besure to name each accordingly like MI-HKCU.reg
and copy to the USB

2)check under Documents  Settings/[user] for any mapinfo stuff and copy 
that to a folder on the USB


3) look in c:\[system] [winnt, windows, win98, etc]
copy any MI files there to a folder on the USB

4) when you get to a machine
copy the folder from above
using a text editor change any references in the *.reg files
navigate to the USB/mapinfo and 2click mapinfow.exe

done this many times and MapBasic is much easier


Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322

| If you receive an email that says something like
| 'Send this to everyone you know,'
| pretend you don't know me.



Data Directions wrote:

Is it possible to load and run MapInfo from a USB flash drive?

The reason I ask is because I'll be travelling overseas for five weeks (in a
few months) and would prefer to just take a USB drive loaded with a working
version of MapInfo and my important client data, rather than lugging around
a 3 kg laptop.

That way, I could check my emails and attend to any client requests on the
road.

Would there might be issues relating to the Windows OS that the drive is
plugged into?

Any thoughts, comments or experiences in this area?

Thanks,

Bill




-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 17804






-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 17817



Re: MI-L dual core and MI - off topic

2005-08-24 Thread Trey Pattillo


haven't gotten one yet to replace the AMD64 3500+
[will be soon]

the biggest advantage is with one app you get all of the cache

then the second app will split the cache 50/50 between the 2 cores

no more of that herky-jerky can't do anything else when mbx's and real 
work is happening will pretty well go away


I'm running a AMD64 3500+, 1gig ram I got in Feb 2005
It does run better than the old 2800+ [32bit] but is still only using 
32-bit mode
The only way to get the real increase is if you want to *beta test* 
eXPee64 and pony up the extra $ to MS for the privledge


If you do Linux with VM-Ware [still have to have MS] that may work but I 
have no info on *nix/VM with MI [project for a rainy weekend - if we 
ever get rain again in south texas for the Suse box under my feet]





Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322

| If you receive an email that says something like
| 'Send this to everyone you know,'
| pretend you don't know me.



Alan Gunn wrote:

Hey everyone,

I am about to put together a new workstation based on the new amd 3800+
dual core cpu. Has anyone been running a dual core machine with MI? Any
noticeable gains in performance? There are other reasons why I want to
go with dual core, but I was interested in the opinion of the list. 


Thanks,

Alan




-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 17614



Re: MI-L Batch output to PDF

2005-07-03 Thread Trey Pattillo

I've been using PDF Creator for my map book program for over 2 years
download is here:
https://sourceforge.net/project/showfiles.php?group_id=57796


For file renaming try Lists of Lists under File Renaming
http://lists.gpick.com/pages/File_Rename_Tools.htm

LoL is the first place I look for anything
in fact PCF Creator is there
Not everything is free [as in beer] but has been scrutinized by 
news.GRC.Security list members.  Basically that is the program is what 
it says it is [privacy,eula,etc] so if it says it is installing hotbar 
and you don't want crapware then pick another program



Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322

| If you receive an email that says something like
| 'Send this to everyone you know,'
| pretend you don't know me.



Warren Vick, Europa Technologies Ltd. wrote:

Hello all,

I have a project which needs to output PDF's in batch - not just in
MapInfo/MapBasic but other applications too. Therefore I'm looking for a
generic Windows-based batch PDF solution and I seem to remember that this
one has come up before on the list.

I currently have Acrobat Standard v6 but this doesn't seem to have any batch
tools (correct me if I'm wrong!). I can handle the application control to
print multiple documents, I'm just looking for a printer emulating writer
that will neatly/accurately make a PDF for each one. One key issues is how
the output PDF's are named. Sequentially with a file name template (e.g.
mypdf001.pdf, mypdf002.pdf, etc.) would be reasonable but I would then
need to do a batch rename. It would be ideal if the writer could find a clue
in the output for the filename (e.g. using a hidden item of coded text).

There seem to be a million-and-one PDF writers out there now. Any
suggestions?

Regards,
Warren Vick
Europa Technologies Ltd.
http://www.europa-tech.com



-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 17009






-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 17012



Re: MI-L Mapinfo/Mapbasic Crash

2005-07-02 Thread Trey Pattillo


I think it is still possible that MI is creating too many temps/names

try this
1) when opening a table add [open part] AS MyName [or meaningful name]
   this will keep MI from generating a name and makes coding neater and
   easier to reference
   You can also define a variable and use that in the references
2) when doing queries [that is the temps] add [select part] INTO MySel
   for example you have all counties in one map but need to
   work with a particular one for this loop then use INTO COUNTY

Also depending on what you are doing, I just realized this recently,
My external back up with everthing on the [transports work  home]
is formatted in Fat32 for compatability with older pc's
Well Fat32 has a 4.2gig limit per file
[could not copy the new Debian Linux 3.1 DVD -- uses full 4.7gig]
and I think there are limits on the directory also, total file names and 
total size



Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322

| If you receive an email that says something like
| 'Send this to everyone you know,'
| pretend you don't know me.



Lorne wrote:

I am using a Mapbasic For loop to create a large number of maps and save
many individual workspaces.
 
There are never more than 2 map windows open at any given time.  Once those

maps are saved to a workspace, the map windows are closed and any tables
directly tied to the maps are closed.  Some tables remain permanently open
since they are used by all map windows.
 
The program runs fine until it reaches about 500 workspaces saved (with 2
map windows per workspace). 
Mapinfo dies at some point between 500 and 530 workspaces (1000 to 1060 map

windows).  It is not a pretty crash in the sense that there is no Mapinfo or
Mapbasic error message... just a general Windows error indicating that
Mapinfo has encountered a problem and has to close.
 
At first I felt that the problem might lie with the constantly incrementing

CostmeticN layer. Mapinfo does not reset the cosmetic layer numbering system
after a map window is closed but just keeps bumping them up with each new
window . I thought that perhaps there was some limitation on the number of
cosmetic layers.  I ran a test on this and found that Mapinfo crashed at
Cosmetic1005 one time and Cosmetic1063 the next so I no longer feel this is
the problem.
 
I now suspect that MI is running out of system resources or some such thing.


 
Is anyone aware of such problems and possible solutions?

Are there upper limits as to how many map windows can be created in one run,
how many tables can be opened and closed, etc.?
Is there any way of resetting system settings to accommodate this sort of
thing and can that be done via code at the start of the program?
 
(I realize I could break the task down into smaller chunks by running

sub-sets of the data. However, that is a rather messy approach and not a
good way to go for other, less knowledgeable, users of the application.)
 
Thanks 
Lorne




-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 17006



Re: SV: MI-L Region Style Copy and Paste Tool

2005-04-13 Thread Trey Pattillo
Thomas Brix Lyng wrote:
 snip...
 I tied to send your a MapBasic tool [MBX]
 but I can´t get through on your mail adress.

If you have problems sending files that are executable, extremely big or 
otherwise a PITA with email this will help.

http://www.yousendit.com
The site has been checked for adhearing to its stated policies, read 
plays nice/no spam/etc, by news.grc.com [Gibson Research www.grc.com] 
lists, which I work with, and I have been using YouSendIt for about a 
year at the office.

The free part allows multiple receipents [comma delimited] but only 1 
file at a time [just zip all the map files] up to 1gig [1000meg].

If you do the $/yr subscription then everthing is unlimited.
put in the receipent[s] email address
click the browse button and select your file
your email address is optional
put a short message in the box
like   Bob, here are the map files you need -- TP
click send
when the transfer completes then
copy the link [or email yourself also] for later reference
The person[s] you sent the file to get a email from YouSendIt it with 
your message and a link to download the file.

The link is good for 7 days or until one of you goes to the page and 
manually deletes it [good way to know they got the file if they do the 
delete]

YouSendIt is 100% private and secure doing this...
Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322
| If you receive an email that says something like
| 'Send this to everyone you know,'
| pretend you don't know me.

-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 16080


Re: MI-L ctrl+M and MapBasic Window

2005-04-07 Thread Trey Pattillo
Found that 2 weeks ago on Win2k/MI6.5/MB6.0
Just a simple routine that reads an INI file
to get the values to stuff into a changed record
that uses user initials and date [for me TP20050407]
to mark changed records so they can be extracted and
sent to others to update their maps.
What happened was that no code in the MBWin would execute,
maybe is was calling the app which silently failed
Anyway settled on Ctrl+SpaceBar
Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322
| If you receive an email that says something like
| 'Send this to everyone you know,'
| pretend you don't know me.

Jacques Paris wrote:
I just found some interesting behavior involving the choice of short cut
and the MapBasic window.
I just had an app that was using Ctrl+M as a short cut. When that app was
loaded (as an item or sub-menu (two different versions) ) in the windows or
in the tools menu (two different versions) , if I wanted to run something
from the MapBasic window (via enter) the app was automatically run. I had
to unload the app to be able to use the MBWindow.
The same application with a Shift+M would not generate the same problem.
How come enter in the MBWindow becomes Ctrl+M ???
MI 6.5 + Windows2000 and MI7.0 +Windows XPFamily
Jacques Paris
e-mail  [EMAIL PROTECTED]
MapBasic-MapInfo support  http://www.paris-pc-gis.com

-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 15993


-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 16003


Re: MI-L how to export or copy all content in message windows

2005-01-17 Thread Trey Pattillo
Since no one answered today I'll throw out what I have found.

can't be done

The message window is a bare-bones window frame that the text must be
directly printed too.  The WinAPI's only get to the window title unless
it is a text box.  There is a possibility the window has a scroll
box that is printed directly to.

If you are building your own MB's, I have a Delphi DLL that has all
types of goodies in it that MB/MI don't offer, like HTML [connects to
internet also] with full tool bar control, a better MessageWindow that
is based on a RichEdit so you can have bold/colors/etc, many math
functions like XOR and parsing/calc a math string.

Anyone wanting to use it drop me a mail wap3 at wap3 dot com


GaoLang wrote:
 hi,
 
   
   Does anyone know of how to export or copy all content in message windows to 
 a text file with mapbasic code?
 
 Any advice is much appreciated!
 
   
 
 GaoLang
 [EMAIL PROTECTED]
 2005-01-16
 
 
 
 -
 List hosting provided by Directions Magazine | www.directionsmag.com |
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 Message number: 14871
 
 
 
 

-- 
Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322

| If you receive an email that says something like
| 'Send this to everyone you know,'
| pretend you don't know me.


-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 14890



Re: MI-L Packing A Table

2005-01-17 Thread Trey Pattillo
From my 13 years with MapInfo I have never done data or graphics alone 
[#1 and #2].
My thought would be that it would then wreck the ID link between the 
data and graphic rows.
I have always packed the the whole thing [#3]
I think I might have done that once but it would have been 12 1/2 yr ago

yes if you have deleted rows in your table and then create custom labels 
you labels with then be wrong.
RowID  Street Name
100  Main St
101  DELETED
102  East St --- custom label here
103  West St

AFTER PACKING
100  Main St
101  East St
102  West St --- custom label still uses #102
Peter Horsbøll Møller wrote:
Hi Philip,
Good question !
My guess is that you will have some problems with your labels if you use either 
1 or 3. I'm not sure if option 2 will have any influence on the labels.
What these options mean is :
1. Pack Tabular data: Packing the DAT file
2. Pack Graphic data: Packing the MAP file
3. Pack both: ...
The problem with your labels is caused be the fact that packing a table might 
reorganize the reocrds and completely remove the deleted records. And costum 
labels are connected to the table thru the ROWID, which might be changed during 
the packing of the table
Peter Horsbøll Møller
GIS Developer
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

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 17, 2005 11:06 PM
To: MapInfo-L@lists.directionsmag.com
Subject: MI-L Packing A Table

I understand that packing a table can corrupt custom labeling.  However, I see 
the options when packing a table appear,
1) Pack Tabular Data
2) Pack Graphic Data
3) Pack Both Types of Data
I can't find where it tells me what these 2 mean.  Does choosing either 
number 1 or 2 stop the label corruption?

Philip Lesnik
Research Systems Analyst, Market Research
General Growth Properties, Inc.
110 N. Wacker Drive   BSC 3-13
Chicago, IL  60606
312-960-2998
312-960-5519 (fax)
[EMAIL PROTECTED]


-
+++  Notice: This
e-mail including attachments) is covered by the Electronic Communications 
Privacy Act, 18 U.S.C. §§ 2510-2521, is confidential and may be legally 
privileged. If you are not the intended recipient, you are hereby notified that 
any retention, dissemination, distribution, or copying of this communication is 
strictly prohibited. Please reply to the sender that you have received the 
message in error, then delete it. Thank you.
+++
-
List hosting provided by Directions Magazine | www.directionsmag.com | To 
unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 14888

-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 14889


--
Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322
| If you receive an email that says something like
| 'Send this to everyone you know,'
| pretend you don't know me.
-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 14891


MI-L test

2004-12-28 Thread Trey Pattillo
sorry for the test
I've had major mail problems with our webhost for 2days
and still trying to get it resolved
--Trey Pattillo
-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 14710


Re: MI-L Laptop specification

2004-12-21 Thread Trey Pattillo
Dell has some really good specials going right now.
About $1000 would be a minimum over all price if you are going to use it 
as a desktop replacement [that is what mine cost in April].
Just remember you can add memory for much less and exteral USB are the 
only way to go so focus more on screen and processor for the $'s.

If you just want a *portable* unit for data collection and smaller over 
all will do Walmart now has a sub-$500, well they figure people will pay 
$498 but not $500.  The specs can be found at 
http://news.com.com/Wal-Mart+debuts+498+Linux+laptop/2100-1044_3-5498006.html?tag=nefd.top
It is shipped with Linux, and you could add Win4Lin for $90 and run all 
'Doze applications [note I have not done it and not sure if MI will work 
with Win4Lin and several versions back using Wine and MI it definately 
did not work].
Memory is relatively cheap so another $60 for 256meg, a USB Wireless Lan 
for $40.

External USB drive case [$35 at www.newegg.com and toy stores near you]. 
 They take a full 3.5 drive [even CD-RW].  I have one set up with a 
160g Maxtor for less than $115.
You can do a DVD +/-RW burner for $55 [+case] at newegg.
Stay away from the *packaged* external ones, they are more of a back-up 
unit than just a drive.
I use Horodruin syncronizer 
http://stefanobordoni.interfree.it/Stefano/horodruin.htm
to keep the office machine and mapserver, home, laptop, and external all 
in sync [sync'd to external] and it is another FREE application.

OpenOffice pre-2.0 [www.openoffice.org] will take care of any 
DOC,XLS,PPT, and now Access files and not only that will print directly 
to PDF and ***tadaFOR FREE.
It does work with dragging a window from MI to a doc [the magnet tool].



Alan Cooper wrote:
Hi list
I am going to be moving around with a new project and so need to move MI 7.0 
onto a 'new' laptop.
Can anyone advise on minimum memory and graphics cards to run MI so I don't buy 
something with the wrong spec.
Alan
--
Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322
| If you receive an email that says something like
| 'Send this to everyone you know,'
| pretend you don't know me.
-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 14671


Re: MI-L : Speed processing issues

2004-12-20 Thread Trey Pattillo
A big hit can come from -indexing-
If you can get by without it during the -work- then by all means kill 
them off and and rebuild them when done.
This is especially true if you start at the top of the table and loop 
all the way to the bottom.
You don't even have to code it, just manually drop the indexing, test it 
and the rebuild, then if it helps you might want to write a 
check/kill/rebuild subroutine.

Not mentioned so far is using -integrated- mapping
[this may get a bit long but worth the explaination and read]
If it is graphic then MB is often the better choice, but most of the 
time integration is not that large of a performance hit because the rest 
of the code is faster.
If you are just -scrubbing- data, then by all means you need to get away 
from MB.

For DATA ONLY work:
Change the table from TAB over to DBF foramt, then use a database 
application [excel, dBase, Access,] or a custom application [Delphi, 
C, C++, Jiva] to do the work directly to the DBF file.
NOTE--you must remove and rebuild any indexes
BIG NOTE--you can NOT add or delete any records, only modify them

For DATA with SOME GRAPHIC work:
Use -integrated mapping-
A good starting point would be to download ScriptBuilder
http://www.skbkontur.ru/sb/eng/index.htm
SB will allow you to build and test code without the expense of 
investing into the full blown versions, but remember that if there is a 
performance boost then their should be even more by having the code 
compiled by the commercial IDE. [you can also distribute your code]
By using SB with VBScript, you can import [copy/paste] your MB code with 
very little modifications.  SB also does Delphi, so you can port it to 
Pascal and gain some additional speed.  Also it supports other scripting 
languages.
I have example code that can help get you going, just drop me a mail

For HEAVY GRAPHIC work:
Integration will still offer some benefits but MB might still be the 
fastest, you just have to -benchmark- it.

For User Interaction [GUI]:
Any language will be better than MB.
You can possibly code direct to the language for -work- or keep the 
-work- code in  mbx's and just call them.

My $0.0175us
--
Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322
| If you receive an email that says something like
| 'Send this to everyone you know,'
| pretend you don't know me.
Data Directions wrote:
I am doing erase, combine and disaggregate operations on 1.3 Gb files, and
needless to say, the processing times are ridiculous ... hours and hours ..
ad infinitum!
I have implemented the idea of using the MapBasic window and choosing to
bypass transaction files by the process:
set table YourTableName fastedit on undo off
Aside from the impractical option of purchasing a Sun Sparc station, would
it help if I was to increase my RAM or even processor speed? I am currently
running on a 2.4 GHz Pentium 4 with 512 Mb RAM. Or should I maybe consider
doing these operations in another product that imports MID/MIF files?
Thanks again,
Bill

-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 14638



-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 14646


Re: MI-L Dot NET and the Future of MapInfo Applications

2004-12-18 Thread Trey Pattillo
I chime in behind this aspect
To me DotNOT is just an other of the never ending ploys by MS to control 
the entire scope of electronic devices [PC, watches, phones, .]
I have worked with Pascal/Delphi since its incepction, giving up 
assembly for it. C/C--, Jiva, etc are just others is the never ending cycle.
As for speed, I have benchmarked some Delphi apps faster than C, and 
improvements can always be made my dropping assembly in for the generic 
code, not to mention never having to package or have the end user polute 
their system with more bloated code [api/dotnot,etc].
I do hope that Kylix [Delphi for Linux] stays a float for cross-platform.
And upgrading, why?
Dephi 6, MapInfo 6.5, OpenOffice provide 99% of all my 'Doze work, with 
Firefox/Thunderbird the other 1% and OO/FF/TB on Linux [until MI will 
work under Wine].
For quick scripting based work [delphi, vb, python, perl] I use 
ScriptBuilder [http://www.skbkontur.ru/sb/eng/index.htm]

My %0.0175us
Steve McArthur wrote:
Hi all
 
I havn't heard much in this discussion from the Delphi developers out there so I'll throw in my humble 2 cents. For me the move to Dot NET doesn't seem to provide much advantages. The Delphi IDE has always provided the advantages that the VB.net IDE now provides (I heard someone describe it as a clone of Delphi) and there has always been a wealth of components available to the Delphi developer. It is even possible to write a wrapper around the MapInfo OLE model to make it behave like a COM object. Whilst Delphi provides its own Dot NET IDE and compiler, it still also gives you the option to compile WIN32 application - VB.net etc no longer seems to give you that option. It seems to me that writing applications in Dot NET only gives me the option of building slower applications running in an interpreted environment. If you want to write fast number crunching applications then you have to write WIN32 apps it seems to me.
 
However, I'd be the first to admit that I've not looked into Dot NET all that much but I'm mindful that if you resist change too much you might end up left behind. If I need to earn my living in GIS development then I think more and more employers are going to ask for Dot NET experience. Its hard enough being a Delphi developer without being Dot NET illiterate. But if MapInfo Dot NET means you can write quick and dirty utilities with a half decent user interface then maybe that's a good thing.
 
End of 2 cents
 
Steve

London Borough of Hackney may exercise its right to intercept any 
communication on its networks - for more information see
http://www.hackney.gov.uk/email_disclaimer.html
--
Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322
| If you receive an email that says something like
| 'Send this to everyone you know,'
| pretend you don't know me.
-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 14624


Re: MI-L Labelling streets with house numbers

2004-12-11 Thread Trey Pattillo
getting the min/max is easy
here's a nice label I do
1) set label for dead center of the line
2) use expression label
3) minimum(fromleft,fromright)+-+maximum(toleft,toright)+chr$(10)+street

David Reid wrote:
Not sure what you're after here.
David Haycraft of Information Analysis Associates
http://members.iinet.net.au/~haycraft/iaa/ has a very useful utility for
placing 'house numbers' as text object, adjacent to a street line and based
on the From To fields.
Or are you referring to labelling the address of cross streets or
intersections? That is to say, if the low address range is 100, that label
woould be placed on that end of the street, if the ending address of the
range is 199, that label would be placed on that end or intersection?
I only know two ways of doing that, one being manually (no fun in that) the
other would be to create points for all your intersections, setting the
object attribute as N and labelling those. Getting the low and high number
of the address range can be tricky and agrevating though.
David Reid
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 11, 2004 3:45 PM
To: [EMAIL PROTECTED]
Subject: MI-L Labelling streets with house numbers


I would like to show house numbers next to streets, that is 4 numbers: the 
representation would be near the left end of each street (2, one up and one 
down) and the near the right end.
Standard labeling in MapInfo is not adequate: only one field can be used and

placement is near the street middlepoint.
Any hint before I generate 4 sets of (invisibl) points with labels ?
Pierre 

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.804 / Virus Database: 546 - Release Date: 11/30/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.804 / Virus Database: 546 - Release Date: 11/30/2004
 

-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 14503


--
Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322
| If you receive an email that says something like
| 'Send this to everyone you know,'
| pretend you don't know me.
-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 14504


Re: MI-L Newcomer help

2004-11-28 Thread Trey Pattillo
Rakesh Rao wrote:
[.snip..]
2. Is VB or VBA a possible programming tool?
You might want to have a look at ScriptBuilder
I have been using it since it came several years ago
It uses Delphi/C++Builder as a base/default but
works several others JavaScript, ActivePython, ActivePerl
with links to download them
like up with MS ADO for database work [also Borland BDE]
Versions are Free, Standard [register], and RunTime distribute
I have some code for MapInfo, email me I you would like a copy.
link to ScriptBuilder http://www.skbkontur.ru/sb/eng/index.htm
--
Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322
--
No virus found in this outgoing message.  My digital signature Trey Pattillo
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.3 - Release Date: 11/26/2004

--
No virus found in this outgoing message.  My digital signature Trey Pattillo
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.3 - Release Date: 11/26/2004
-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 14265


Re: MI-L Printing Text Documents with MapInfo

2004-10-07 Thread Trey Pattillo
Bill and others,
I put together a DLL from earlier code I had leaving out the heavy stuff
MB-RTF.DLL
Use a RTF [Rich Text Format] file created with the included editor or 
WordPad, NOTE---Word and WordPerfect create munged rtf standard files.

Just 5 simple functions rtfOpen, rtfReplace, rtfSave, rtfPrint, ftfClose
[actully open is a function the others are sub's]
Open the file [template]
Do a Search/Replace
Print or Save [RENAME THE FILE]
Close the file
Written in Delphi6 and includes source, MB example and text manual 
[cheap crappy techie style]
Unzip to a folder in your project and include the DLL in your 
distribution. Please RTFM.

In the example mb source besure to change the file path.
download it here
http://www.wap3.com/download/mb-rtf.zip
--Trey Pattillo
=
Bill Thoen wrote:
I've got to modify an MBX application to print a page of legal fineprint 
following the output of one to many maps. The maps are easy, but how do 
you produce a neatly-formatted page of text? This page has about 1000 
words of boilerplate text and I've got to add some run-time generated 
summary text as well.

The output goes directly to the printer on the client machines, and I 
can't assume they have MS Word, Adobe PDF, or even a web browser.

The only thing I can think of is to paste the boilerplate text into a 
layout window, line by line (because strings can't be longer than 255 
chars), and then save it as a workspace. At run time, I could then open 
this layout, drop in my additional text at the top of the page, and print 
the page. But the prospect of manually laying out the fixed text seems a 
bit daunting.

Does anyone know if there is a better way, or a tool that can move a Word 
document into a frame that could be dropped on a layout?

- 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: 13640


--
Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322
-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 13646


Re: MI-L Printing Text Documents with MapInfo

2004-10-07 Thread Trey Pattillo
just a side note on compliant editors
if you have your document in M$ Word [not wordperfect]
then get OpenOffice Build 1.9.m54 [pre-release v2.0]
it is fully compliant, open source and FREE
open your DOC and save it as RTF
http://download.openoffice.org/680/
pick a site near you
this release increases spreadsheet/xls to 64k rows from the previous 32k 
rows that would fail a big sheet/xls import

If you don't know OpenOffice it reads/writes DOC/XLS/PPT and has a 
graphic editor and math editor [writer/calc/empress/draw/math in start 
menu] and directly prints PDF files.  Macros from M$ don't work, but 
that is the price of security, although it has it's own macro processor.

You can use MI drag/drop and MapInfo Map inserts
I have not played with OLE Integration but it should be there for coders
A recent comparision ranks it as good as Adobe PageMaker for big fancy stuff
--
Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322
-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 13647


MI-L Start of week humor

2004-06-06 Thread Trey Pattillo
A bit of humor to start off the week
from User Friendly dot org
topic: Sun's statement that in 5 years the hardware will be free and you'll
just rent the softare

http://ars.userfriendly.org/cartoons/?id=20040606mode=classic

Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.699 / Virus Database: 456 - Release Date: 06/04/2004


-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 12052



Re: MI-L Quick stupid question -- Key Codes

2004-05-18 Thread Trey Pattillo
0-31 Control Codes
These are from the old teletype days and contain formating commands and
even beeping the speaker #7 [bel]
Some are very functional in providing a text based database, even the 911
data has #2 [start text] #3 [end text] #28 [file separator]
Most used in MapInfo/MapBasic [in decimal values] are:

#7 - Bell [beep speaker]
#9 - Tab [note that MapInfo shows as a square and does not indent the text]
#10 - Line Feed
#12 - Form Feed
#13 - Carriage Return
#27 - ESCape [can help stop erronous key press triggering in VB and Delphi]
All the other are historical and special purpose use [field / record markers
for text database]

32-127 are the standard character set [what you type in say Times New Roman]

128-255 are graphic symbols by defination and based on mono spaced fonts
like Courier New or Terminal and will vary amongst the fonts and may not
even be printable in some fonts and applications

Also you can enter key values by holding the ALT key and using the number
pad to enter decimal value then release ALT key

For creating multiple-lined labels all that is needed is Chr$(10)


Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322

- Original Message -
From: Brown, Christopher (HI) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 18, 2004 19:16
Subject: RE: MI-L Quick stupid question


I know Chr$(13) gives a character return as well but could someone point me
to where there is a list of all the Chr$ values?

Regards
Chris
Chris Brown - Cartographer
Resource Evaluation, Land Assets,
Hamersley Iron P/L.
Tel. +61 8 9327 2176
Fax. +61 8 9327 2478
mailto:[EMAIL PROTECTED]
http://www.hamersleyiron.com/


-Original Message-
From: David Reid [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 19 May 2004 1:06 AM
To: [EMAIL PROTECTED]
Subject: RE: MI-L Quick stupid question


Josh, give the Chr$(36) a try,  36 is the ASCII decimal value for the $
dollar sign.

Chr$(36)+(column_name)

HTH
David Reid

-Original Message-
From: Josh Forsythe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 18, 2004 11:54 AM
To: [EMAIL PROTECTED]
Subject: MI-L Quick stupid question


I couldn't find the answer to this anywhere, and the question is
frustratingly simple:



I just want to add a dollar sign to the beginning of a label, to indicate
cost. Right now, the number just reads as 111.11, and I just want $111.11.
How do I change the expression on the label to allow for that? I've tried:



$(column_name)

\$ (column_name)

\$ (column_name)

@#$*()^*()^ (column_name)



(the last one was pure frustration).



Thanks,

Josh







Josh Forsythe

Engineering Assistant

Midwest Wireless





-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 11822


-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 11825





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.687 / Virus Database: 448 - Release Date: 05/16/2004


-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 11830



Re: MI-L Reasons for a big screen for GIS

2004-03-24 Thread Trey Pattillo
13) Repeats and re-alleges all statements set forth in items 1 through 13 of this 
Request as though fully set forth herein. [ SCO vs IBM style www.groklaw.net]

14) Upon information and belief, to use the new $$$ video card at max res (99 X 
8) the text is so small the minimum required monitor is a Sony PFM-50C1 50 inch 
plasma [ $6,259 at http://www.newegg.com/app/manufact.asp?catalog=385DEPA=0 ]

15) A life size picture of my Colin Farrell screen saver, item #4, hanging on the wall 
will look r3411y k00L and improves the spacial environment of the office.

16) By having said monitor, item #14, wall mounted I have more room on my desk for 
dust collectors to keep dust from collecting on the monitor and therefore prolonging 
its useful life by reducing the amount dust it collects.

call the above Wednesday humor

BTW I have 2 year old test dust under my monitor to prove a theory that if you don't 
dust for 3 years it won't collect any more dust.

I use 19 Philips flat CRT [109-B4 $275] and spent yesterday morning on a 21, now I 
want one

I do not recommend LCD's for mapping or any other real work


Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322

  - Original Message - 
  From: Bean, Nick (N) [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, March 24, 2004 9:12 AM
  Subject: MI-L Reasons for a big screen for GIS


   Dear all,
   I have a colleague who is trying to get a big screen to do her GIS with,
  and
   I have asked her to come up with a list of reasons to put together a
   business case so she can get one supplied. Unfortunately she has supplied
   this for reasons to have a big screen.
  
   1. I am worth it
   2. I need a big screen when doing MI work otherwise my eyes may become
   damaged
   3. I can get more data on show for MI thus increasing my work efficiency
   4. my Colin Farrell screen saver will look better
   5. Gareth has a big screen and I am more important than him and he know it
   7. You would benefit from a larger screen for teaching me VM
   8. It would look better on my desk
   9. It would make me feel important seeing as everyone apart from Gareth
  have
   small screens
   10. Everyone in GIS has a big screen and I do GIS therefore I should have
   one as well - company practise it seems
  
   Can anyone add to this list?
  
   Bean
  
  
  
   
   Nick Bean
   GIS Manager
   Information Solutions Group
   Black  Veatch Consulting Ltd
   e-mail: [EMAIL PROTECTED]
   Direct Line: + 44 (0) 1737 856 402
   Fax: +44 (0) 1737 772 767
  
   Black  Veatch Consulting Ltd is a part of the Black  Veatch Corporation
   Registered office: Grosvenor House, 69 London Road, Redhill, Surrey, RH1
   1LQ, United Kingdom
   Registered no. 3681070 England
  
   This message has been sent via the Internet. Black  Veatch Ltd therefore
   can not guarantee that this message has not been modified in transit.
  This
   message on its own should not be viewed as contractually binding.  This
   message and any files transmitted with it are confidential and intended
   solely for the use of the addressee.  If you have received this message in
   error please notify the sender and destroy your copies of the message and
   any attached files.
  
  
  
   -
   List hosting provided by Directions Magazine | www.directionsmag.com |
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   Message number: 11053


  -
  List hosting provided by Directions Magazine | www.directionsmag.com |
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  Message number: 11055




  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.637 / Virus Database: 408 - Release Date: 03/20/2004

Re: MI-L Registering a Mr. SID image

2004-01-25 Thread Trey Pattillo

Get WorldReg.mbx   http://members.aol.com/MapData/wrv3.html

It is free for personal use but lacks the purchased extras like doing
batch files and conversions
It is about a 5-6 step process, that is fairly well designed and easy to
use.

Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322


- Original Message -
From: Walt Kelly [EMAIL PROTECTED]
To: MapInfo List [EMAIL PROTECTED]
Sent: Sunday, January 25, 2004 19:53
Subject: MI-L Registering a Mr. SID image


 Greetings,
 How do I get a Mr. Sid image to show up properly as a registered image in
a
 workspace?
 In the Mr. SID viewer, the file's origin is in the upper left corner. It's
 UTM coord is x=569497.5, the y=4900759.5. The units seem to be meters.
 Points on the image (Using Measurement info) have coordinates that match
UTM
 on my GPS.
 When the file is opened in MapInfo, the upper left corner shows up with
 coordinates of x=0 degrees, y=0 degrees. In addition, y increases going
 DOWN. I can view only the Mr. SID image by selecting its file in View
Entire
 Layer.
 I tried a save as on the table changing the projection to Lat/lon.
Didn't
 help.
 If you have a suggestion, Please give me ALL the steps needed to carry it
 out. I don't use MapInfo all that often and am not expert enough to be
able
 to fill in the blanks in the steps that are obvious to regular users.
 Thank you so much for any help. Mr. SID is so utterly cool that if I can
get
 it as an underlying image, using the GeoTracker will be fantastic.



 -
 List hosting provided by Directions Magazine | www.directionsmag.com |
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 Message number: 10093






---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.564 / Virus Database: 356 - Release Date: 01/19/2004


-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 10094



Re: MI-L Recover Old Program

2004-01-21 Thread Trey Pattillo
contact StopWatch Maps
www.stopwatchmaps.com
in the contacts section

They are not *free* and you must *prove* your ownership

search the archives for stopwatch and decompile
those who have used them are please, job is complete and very timely [fast]


Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com

N27.799013 W-97.665322

- Original Message -
From: Juanse [EMAIL PROTECTED]
To: MapInfo [EMAIL PROTECTED]
Sent: Wednesday, January 21, 2004 07:25
Subject: MI-L Recover Old Program


Hi everyone

A client arrive with a programed version of mapinfo (ie. dedicated menus
and funtions) but he does not have the source code. He wants me to expand
the query possibilities of his current application. Is it possible to
absorb the old program within a new one with out having the source codes.
Any thoughts on the best way to proceed without having to program everything
again?.

juanse
temuco-Chile



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.561 / Virus Database: 353 - Release Date: 14/01/04



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.564 / Virus Database: 356 - Release Date: 01/19/2004


-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 10053



Re: MI-L Application Window Position with 2 Monitors? (Resend)

2003-12-15 Thread Trey Pattillo

Below is the MB Source that will get the number of monitors, screen width,
system font size [small=96px large=120px]
For some cards, especially nVidia MX series there is a flaw in 'doze where
it will report only one monitor of a dual head card and then 'doze will only
use a *big desktop*
This appears with the Start Bar across both monitors instead of just the
Primary
So checking the Screen Width [scrWidth] is it is 2048 then user has 2
monitors on 1024x768 resolution each in *big desk*
otherwise [TI, Rage, etc chipsets] NumMonitors will be 2 with width of 1024
as this code only tests the primary monitor
In *true dual mode* you can have differents resolutions on each monitor but
the code and APIs get even worse for EnumDisplayDevices() and get the
dmPelsWidth by cycling the number of monitors from 0 to NumMonitors-1.

Download AllAPI from http://www.mentalis.org/agnet/apiguide.shtml it has
helped me alot

 CODE START 
'
' get screen resolution from video card
'
DECLARE SUB Main
Define SM_CMONITORS 80 '' decimal value
DEFINE SM_CXSCREEN 0
DEFINE SM_CYSCREEN 1
DEFINE LOGPIXELSX 88 '' decimal value

Declare Function GetDesktopWindow Lib user32 () As Integer
Declare Function GetDC Lib user32 (ByVal hwnd As Integer) As Integer
Declare Function GetDeviceCaps Lib gdi32 (ByVal hdc As Integer, ByVal
nIndex As Integer) As Integer
Declare Function ReleaseDC Lib user32 (ByVal hwnd As Integer, ByVal hdc As
Integer) As Integer
Declare Function GetSystemMetrics Lib user32 Alias GetSystemMetrics
(ByVal nIndex As Integer) As Integer
Dim NumMonitors AS Integer
Dim scrWidth AS Integer
Dim hWndDesk AS Integer
Dim hDCDesk AS Integer
Dim logPix AS Integer
Dim r AS Integer

SUB MAIN
  hWndDesk = GetDesktopWindow()
  hDCDesk = GetDC(hWndDesk)
  logPix = GetDeviceCaps(hDCDesk, LOGPIXELSX)
  r = ReleaseDC(hWndDesk, hDCDesk)
  print chr$(12)
  NumMonitors = GetSystemMetrics(SM_CMONITORS)
  print Number of Monitors =  + NumMonitors
  scrWidth = GetSystemMetrics(SM_CXSCREEN)
  print Screen Pixel Width =  + scrWidth
  print Pixels Per Inch =  + logPix
  print Screen Width Inches = +format$(scrWidth/logPix,#0.0###)
END SUB
 CODE END 

Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322

- Original Message -
From: Matt Bolton [EMAIL PROTECTED]
To: Scott Walsh [EMAIL PROTECTED]
Cc: MI-L [EMAIL PROTECTED]
Sent: Monday, December 15, 2003 17:20
Subject: Re: MI-L Application Window Position with 2 Monitors? (Resend)


 Scott,

 I know how to do it in VB, but that won't help you. I'm pretty confident
 there's an API call you can use for it, but I can't tell you what it is
 and have no experience using APIs in Mapbasic.
 Have a look at http://www.mentalis.org/apilist/GetSystemMetrics.shtml. I
 think this only returns values in pixels, but there should be a simple
 conversion to inches.

 Good luck.  If you find anything useful, I'd be interested in hearing
 about it.

 Matt



 Scott Walsh wrote:

  Thanks to Litea and Matt for your quick response.  Your solution did
  work Matt, but I was wondering if there is way to read the Height and
  Width of the user's screen in MapBasic and then adjust your
  application window according to that setting?  I'm using an ATI video
  card and looked around in there, but couldn't see anything where I
  could define startup etc...
 
  If not I'll use Matt's solution. Thanks everyone!
  Scott
 
  Matt Bolton wrote:
 
  Scott,
 
  I asked a similar question a few weeks ago (18 Nov 2003). Check out
  that thread for some useful info.
 
  The solution to my problem (sounds similar to yours) was to add the
  following line to the mapinfo.mnu file:
 Set Window 1011 Position ( -0.05, -0.05) Width 14.73 Height 11
 
  You may need to fiddle with the numbers a bit for your 17 (change
  the 14.73 to 16.73 and the 11 to an appropriate value)
 
  Matt
 
 
 
  Scott Walsh wrote:
 
  List,
 
  I have a MI application that I'm running on a PC with 2 monitors. I
  want the MI application to position itself in the right monitor at a
  certain size (17 monitor) etc(I know how to set a map within
  the application, but what about the actual application window itself?)
 
  Thanks in advance!
 
  Scott Walsh
 
 
  -
  List hosting provided by Directions Magazine | www.directionsmag.com |
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
[EMAIL PROTECTED]
  Message number: 9495
 
  .
 
 
 
 
  .
 

 --
 Matt Bolton

 Mach 3 IT

 Mobile 0412 122 416
 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: 9564






---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.551 / Virus

Re: MI-L The future of MapBasic

2003-12-04 Thread Trey Pattillo
Marketing..Marketing..Marketing..

Yesterday was one of the *long days*
office at 7am, 10am left for 4hr drive to 3pm meeting, 6pm 4hrs back home at
10pm

The meeting was for the Technology Committee [I'm a member] for the Texas
Assoc of Regional Councils
there are 254 counties divided into 24 *regions*

Topic of discussion, some lame brained bill about cataloging all county
roads

BUT ..who's in the audience taking it all in but our favorite
competitor

As a *tech committe* in the future I will not be silent, [not enough time
for the times this time] and see that *alternative* and often free solutions
are available.

I do believe that given any complex problem there is an obvious and simple
solution that is absolutely wrong.
But for a county that has no money, and I don't have the time to do work for
my 12, then alternatives are a viable solution.


Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 11/27/2003


-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 9438



Re: MI-L MI 7 and multi monitors

2003-11-18 Thread Trey Pattillo

Does anyone know how MI determines start up position (.ini, registry etc.)?
answer  MAXIMIZED but can be hacked

here is what I learned in Sep/Oct when reworking my 911 mapping application
to utilize the new Dell Dual 17 LCD's that were being installed...

M$ thumbs it nose at the IEEE, W3C [web], or any other standard [nothing new
here]
All versions except 98 and eXPee have major issues that vary depending on
the video chip set [matrox, nVidia]

I'm using Win2k and 911 is using eXPee Pro, so I spent may hours of
searching/coding/debugging/shampoo/rinse/repeat

do a google search for nVidia dual monitor [with quotes to read/understand
more] as they have more issues than the others

1) nVidia on Win2k does not do a true dual monitor but only 1 BIG
desktop [note start bar spans both monitors]
2) Matrox, et. al., are better [play dual monitor correctly] but have some
other issues
3) if you are using dual cards do not do agp and pci use only pci and xpee
will do 5 cards with 10 monitors [other WinXX are less]
4) if I remember correct PCI cards have less/none of the issue that AGP has
[read nVidia works correct but don't put $$ on that]

You can hack your problem by changing the mapinfo.mnu file
I'm not going to comment where 'Doze put it should be located with
mapinfow.exe
but for 2K/XP it may be under the c:\documents and settings\{current user}

Add this line to the end of the file

  Set Window 1011 Position ( X, Y) Width W Height H

where X,Y,W,H are expressed in inches [pixels / 96 ]

example to put on right monitor with 800x600 resolution
   X = 800 - 4 = 796 / 96 = 8.2917
   Y = 600 - 4 = 596 / 96 = 6.2083
   H = 800 + 8 = 808 / 96 = 8.4167
   W = 600 + 8 = 608 / 96 = 6.

Set Window 1011 Position ( 8.2917, 6.2083) Width 6. Height
8.4167

The reason for the - 4 and +8 is to remove the outer border edges simulating
maximize
[windowse [www.greatis.com] reports MI width as 1032 for my 1024 settings]
[this app tells all about the window or part of under the cursor ]

I'm not sure what will happen when the user clicks maximize
It may jump back to the left monitor and stretch across both monitors.
YMMV

You should also be able to replace the Position() W w H h.. with the
constants for
win_state_normal = 0
win_state_minimized = 1
win_state_maximized = 2

and you can use a single quote ' at the start of the line to comment out
the line for quick on/off

NOTE: be sure to make a backup copy before starting and use a pure text
editor [www.editpad.com]




Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322

- Original Message -
From: Matt Bolton [EMAIL PROTECTED]
To: Jonathan Gledhill [EMAIL PROTECTED]
Cc: MI-L [EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 08:18
Subject: Re: MI-L MI 7  and multi monitors


 Jonathan,

 The PC with the problem has a NVidia GeForce2 Go.  I've done some more
 experimenting and MI 7 is the only app which has this problem.

 I have another PC with a Matrox G400 dual head and the Powerdesk
 software with that allows me to set which display apps open in (all
 apps, not each one individually), but the nVidia card doesn't seem to
 have the same thing (or need or except for MI 7).

 Thanks,

 Matt


 Jonathan Gledhill wrote:

 Hi
 
 I use multi monitors with Mapinfo 7
 
 I don't think its Mapinfo that remembers which window to start up in,
 My GFX card is a Matrox G400 and its through the Matrox Software that it
 remembers where certain windows go.
 
 I have to tell the Matrox Powerdesk software to Remember which
 Display is used for a particular application..
 
 What make of graphics card do you have?
 
 Cheers
 
 Jonathan
 
 
 
 Jonathan Gledhill
 Assistant Operations Engineer
 Biwater Treatment Ltd
 
 Tel: 0141 847 5672
 eMail: [EMAIL PROTECTED]
 
 
 
 **
 
 CONFIDENTIALITY
 
 The information contained in this message and any attachments
 are intended solely for the use of the individual or entity to whom
 they are addressed.  It may contain privileged or confidential
 information.  If you are not the intended recipient you must not
 copy, distribute or take any action in reliance on it.  If you have
 received this e-mail in error please notify the sender.  Thank You
 
 This e-mail message has been swept by MIMEsweeper for the
 presence of known computer viruses.
 **
 
 
 -
 List hosting provided by Directions Magazine | www.directionsmag.com |
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 Message number: 9194
 
 .
 
 
 

 --
 Matt Bolton

 Mach 3 IT

 Mobile 0412 122 416
 Email  [EMAIL PROTECTED]




 -
 List hosting provided by Directions Magazine | www.directionsmag.com |
 To unsubscribe, e

MI-L Wednesday wierdness - SQL Intersects Fails

2003-11-12 Thread Trey Pattillo

Select * from StreetFile where CircleSelector intersects obj into Work
Fails on some polylines

Working on my 911 MapALI program to reverse geocode a cell phone location
yep, in Corpus Christi TX of 1000 911 calls per day 70% are cell and 60%
have valid and *accurate* lat/lon coords

Note accurate, as the location can be less than 10 feet from the street
center line

I have MI 4.5,  6, and 6.5 and all fail the same way.

You can copy and paste the code at the end to test it -- correct is that no
objects are selected

CircleSelector is 8 feet and 14 feet from the line

If you draw a line from the nodes above and below the *close* node you find
that it cuts thru the selector

This is *reverse logic* at this point and nothing should be selected so that
the SQL loop continues 8,16,32...8192 feet and drops out when answer table
has found an object
So it should have looped to 16ft and correctly found the line intersecting
the selector -- not the imaginary line

Problem then occurs later when testing the distance from the location back
to the line segment extracted from the polyline
If the *triangle height* calculated from start/end/location points is
greater than the selector radius distance
indicating that this segment was not the one intersecting with selector
[NOT]
the app continues looking at the rest of the segments and fails.

Move the point around a bit and then it will pick up correctly and try
changing the 8 in CreateCircle to 16, 32

FWI this is a real street and a real cell call location
911 is happy with what app does BUT..when, not if, something
goes wrong the legal buzzards will be hovering above


Besure to change file location in create table and get all line wrapping
back on one line
 copy start -
Set Distance Units ft
Create Table fail (Street Char(50),FromLeft Integer,ToLeft
Integer,FromRight Integer,ToRight Integer) file C:\fail.TAB TYPE NATIVE
Charset WindowsLatin1
Create Map For fail CoordSys Earth Projection 1, 0
Map From fail

dim aSel as object
Create Pline into variable aSel 8 (-97.412431,27.802423)
(-97.412656,27.802733) (-97.41275,27.803293) (-97.412748,27.803833)
(-97.412661,27.804223) (-97.412467,27.804637) (-97.412428,27.804869)
(-97.412441,27.805053) PEN MakePen(1,2,0)

insert into fail (obj,street,fromleft,toleft,fromright,toright) values
(aSel,Oak Ln,6477,6515,6478,6516)
commit table fail
Set Map window windowid(0) Zoom Entire Layer 1

aSel=createcircle(-97.412705,27.803829,8)
select * from fail where obj intersects aSel into work browse * from work
insert into cosmetic1 (obj) values (aSel)
undim aSel

-- copy end -





Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322


-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 9138



Re: MI-L SHBrowseForFolder and the BROWSEINFO

2003-08-01 Thread Trey Pattillo

For those need some help into the API's you might want to download
AllAPI.net [free] at http://www.mentalis.org/



Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322


-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 7871



MI-L Double Click problems

2003-06-13 Thread Trey Pattillo
anyone know why v6.x the double click button no longer works in dialogs
[open, etc] and if you 2click the map [or browser] the cursor changes to a
funky scroll/navigator, and if I dare move the mouse the map jumps a 1/4 way
around the world.
everthing is fine in 4.x

Logitech optical 2buttons + scroll w/button
running latest v.976 and v9.75 had the same problem

Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322


-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 7289



MI-L Intersecting Regions Nodes

2003-03-26 Thread Trey Browder
I am trying to write a piece of code in MapBasic that will place nodes at
the intersection of two circular regions and then delete all nodes
in-between the two intersection points.  I used the OverlayNode() Function
to create nodes at the intersection points for both regions that overlap.  I
proceed using nested For loops and the ObjectNodeX() and ObjectNodeY()
functions to determine the node number of the intersecting point.  This node
number is stored in an array variable.  I use the array to set the beginning
and ending nodes for use with the ExtractNodes() function.  However,
sometimes the array contains no intersecting points or more than two
intersecting points.  No intersections should not occur because I only
selected regions that did intersect using the Select Where objA Intersects
objB clause.  In the cases where I get more than two intersecting points, it
is because two different nodes have the same coordinates.  I didn't think
the OverlayNode() command would put nodes at a point where one already
existed.

If anyone has any suggestions on what could be causing this problem or
perhaps a better way to do what I am trying to do, please let me know.
 
Thanks in advance.

Trey Browder
Wireless Consulting Engineer
Marconi Wireless
1300 Diamond Springs Rd, Suite 600
Virginia Beach, VA 23455
Phone : 757-464-1817 Ext. 331
Fax :   757-464-2148
[EMAIL PROTECTED] mailto:[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: 6116



Re: MI-L OLE - Method ~ of object failed

2003-03-07 Thread Trey Pattillo
Paul,

I'll be nice..so I'll have to make it short before it wears off

I have had strange things happen that I resolved with
ReturnVal = getasynckeystate(KeyValue)

It is defined in User32.lib
Here's M$ link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui
/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboar
dinputfunctions/getasynckeystate.asp
or goolge it

ReturnVal is a dummy integer and means nothing other 0 nothing otherwise
the keycode
KeyValue is 27 (decimal) which is the Escape Key code

Why it worked, I dont know but I put it before doing find and select

If it helps fine but if not 
then try Delphi..[dodging items head at face]couldn't resist




Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322

- Original Message -
From: CRISP, Paul -Syntegra UK [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 07, 2003 05:43
Subject: MI-L OLE - Method ~ of object failed


 All -
 Method ~ of object ~ failed (occasionally Method ~ of object IMapInfo
 failed)

 We get this error every now and then (running VB6 driving MI7) - its not
 predictable but seems to trash MapInfo - the EXE is still running but the
 OLE interface methods are broken.

 Is it an assynchronous processing issue? IE MI getting commands to execute
 before its finished the previous one(s). Apparently its a common COM error
 to do with error reporting but I can't seem to reset the MI error handler
 and the users just have to give up and start again.

 Has anyone else hit this and what did they do? Trey Patillo will say Gave
 up on VB and used Delphi of course :-)

 PS since people are quoting daft poetry lately, here is a Brooklyn ditty

 Toity doity boids
 Sittin on da koib
 A'choipin and a'boipin an a'eatin doity woims



 Paul Crisp

 Syntegra
 Innovation Place Delta Bank Road Newcastle NE11 9DJ
 Tel 0191 461 4522 Fax 0191 460 1987


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 07 March 2003 11:30
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: MI-L OT - Hall of Shame: GIS spam


  Spring has sprung

 The grass has ris

 [etc]

 Best wishes
 Alan Pritchard
 The GLOBAL GAZETTEER: the world on file
 http://www.allm-geodata.com
 Tel: +44 (0) 1202 417 477

 -
 List hosting provided by Directions Magazine | www.directionsmag.com |
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 Message number: 5824


 

 This email may contain information which is privileged or confidential. If
you are not the intended recipient of this email, please notify the sender
immediately and delete it without reading, copying, storing, forwarding or
disclosing its contents to a
 ny other person
 Thank you

 Check us out at http://www.syntegra.com

 




-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 5840



Re: MI-L OT - Hall of Shame: GIS oriented spammer

2003-03-06 Thread Trey Pattillo
Nice to know I'm not the only one getting junk from USCENSUS.NET
Got 4 copies already and they are not all addressed to me
They have evidently gone to the website and pulled names/mails
Wonder how server could handle a no spam attack from everyone

Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322

- Original Message - 
From: Bill Thoen [EMAIL PROTECTED]
To: MapInfo-L [EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 17:29
Subject: MI-L OT - Hall of Shame: GIS oriented spammer


 A friend of mine has alerted me to spam from GeoLytics, Inc.
 using the domain 
 'uscensus.net' and pushing their spam through SEK Institutional
 SEK1 (via IP 199.227.99.124.) They are trying to market some
 census data via unsolicited e-mail. This kind of marketing has
 got to stop!
 
 I'd like to send a clear message to this GIS supply company that
 spamming is a sure-fire way to lose business and become a pariah
 in the industry, so if you feel similarly don't buy their
 products or anything from uscensus.net for a while. 
 
 You can reach GeoLytics at:
  GeoLytics,
 Inc. 
PO Box 10
East Brunswick, NJ 08816
Phone: (800) 577-6717   
Phone: (732) 651-2000
Fax: (732) 651-2721
[EMAIL PROTECTED]
 
 If you want to verify the spam message yourself, just ask and
 I'll forward the message with headers to anyone who wants to
 check it themselves.
 
 - 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: 5814
 

-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 5816



Re: MI-L Hotlink to File Explorer

2003-03-03 Thread Trey Pattillo

I don't use the hotlink in MI but have my own, with much better control and functions, 
so you are own 
your own their

As far as Explorer is concerned:
You don't need a path, Windows will fire it with only explorer
Just add a space and the the start folder 
If the folder path has spaces you must quote the whole path
explorer c:\program files\mapinfo

/e,d:\  opens with tree pane and focuses drive D: in the tree pane
/e,/select,c:\program files  opens with tree and focuses program files in files 
pane
/e,/select,c:\program files\mapinfo\mapinfo.exe  focues [selects] mapinfo.exe file


explorer [/n] [/e][,/root,object][[,/select],subobject] 
Parameters 
/n 
Always open a new window (even if the specified folder is already open). 
/e 
Use Windows Explorer view. The default is Open view. 
/root,object 
Specify the object in the normal namespace that will be used as the root of this 
Windows Explorer Folder. The default is to just use the normal namespace root 
(the desktop). 
subobject 
Specify the folder to receive the initial focus unless /select is used. The default is 
the root. 
/select 
Specifies that the parent folder is opened and the specified object is selected. 

Windeler, David [EMAIL PROTECTED] wrote on 03/03/2003 08:02:25:

To whom it may concern:

I am wondering if the following is possible? I wish to attach a path to a
field in a MapInfo table that will provide the file path for the Hotlink
tool. What I want to do is open Windows Explorer (can be done using the path
C:\Winnt\explorer.exe) and have it display the contents of a selected file
folder. Is this possible? If so what syntax do you use to have Explorer open
and display the contents of a particular folder?

David Windeler Hons. BSc. Geo, GIS Apps. Specialist
GIS Technician / Applications Specialist
City Of Vaughan

Engineering Department
2141 Major Mackenzie Drive
Vaughan, Ontario
L6A 1T1

Tel. (905) 832-8525 Ext. 8747
Fax (905) 832-6145
E-mail [EMAIL PROTECTED]

http://www.city.vaughan.on.ca



-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 5757



Re: MI-L Integrated Mapping (resize) Problem

2003-03-02 Thread Trey Pattillo

hello,

it has been an long time since I used VB, gave it up and went back to
pascal/delphi.
in Delphi the OnResize is only fired when the user releases the mouse.
granted VB may be calling it recursively as M$ is known to do strange things
try a test app that throws a message box or changes the title to verify if
you want.
so if VB is really recursing the OnResize I would just debounce it instead
of limiting the user's ability to get the proper sizing they want.

add global variable as logical [boolean true/false]
DIM DoResize AS Logical

in OnResize set DoResize to True

in form mouse up
if DoResize=True then
  DoResize = False
  MapInfo.DO .resize.
  exit
end if
. other mouse up code
end sub

When the user releases mouse and form size changed then MI redraws

My $0.0175us

Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322

- Original Message -
From: Simmonds, Ashley (PTB) [EMAIL PROTECTED]
To: 'MapInfo-L (E-mail) [EMAIL PROTECTED]
Sent: Sunday, March 02, 2003 18:23
Subject: RE: MI-L Integrated Mapping (resize) Problem


 yep, if you're using VB then make sure you set the SCALEWIDTH properties
 correctly as below or you'll get wierd results.

 with this resizing thing, my apps use it, however i've set MI to only
resize
 it's display after the size of the container window has changed by more
than
 10%.  this reduces the API overhead associated with making a call every
time
 the user resizes it, or in other words, instead of there being say 50
resize
 calls made as the user expands the map window, it only does a couple.  i
 also provide a manual refresh/resize button for when the resize they have
 done does not exceeed 10%.

 the reason for all this, is essentially because i was encountering errors
 with stuff to do with simultaneous commands.  if anyone has robust code
for
 on the fly resizing, then i'd appreciate being able to check it out.  it's
 just that i found it to be too unstable so i chose the 10 percent
solution.

 ash.

 -Original Message-
 From: CRISP, Paul -Syntegra UK [mailto:[EMAIL PROTECTED]
 Sent: Saturday, 1 March 2003 1:47 AM
 To: 'Windeler, David'; 'MapInfo-L (E-mail)
 Subject: RE: MI-L Integrated Mapping Problem


 David -

 Its not actually the picture box you are seeing, its the reparented
MapInfo
 window. Either prevent the users resizing the form or put the following
code
 in the forms resize event.

 (From the MapBasic manual) -

 Whether the user is able to resize the Map window depends on how you set
up
 your application. The sample program, FindZip, places a Map window in a
 Visual Basic PictureBox control, so that it cannot be resized. However,
you
 could reparent a Map window using an MDI interface, which allows the user
to
 resize the window.
 Note: When the user resizes the Map window, MapInfo does not automatically
 reset the map's contents to fill the new window size. Therefore, if your
 application allows the user to resize the Map window, you must call the
 Windows API function MoveWindow to make the Map window conform to the new
 size.

 For example, if your Visual Basic program will run under 32-bit Windows,
you
 can use the following Visual Basic Declare statement to access the
 MoveWindow API function:

 Declare Function MoveWindow Lib user32 _
   (ByVal hWnd As Long, _
   ByVal x As Long, ByVal y As Long, _
   ByVal nWidth As Long, ByVal nHeight As Long, _
   ByVal bRepaint As Long)  As Long

 When the user resizes the Map window, call MoveWindow. In Visual Basic, a
 resize event triggers the Form_Resize( ) procedure; you could call
 MoveWindow from within that procedure, as shown in the following example.
 Dim mHwnd As Long
 mHwnd = Val(mapinfo.Eval(WindowInfo(FrontWindow(),12)))
 MoveWindow mHwnd, 0, 0, ScaleWidth, ScaleHeight, 0

 The number 12 corresponds to the MapBasic identifier WIN_INFO_WND.
 ScaleWidth and ScaleHeight are properties of a Visual Basic form,
 representing the form's current width and height. Note: The ScaleMode
 property must be set to Pixels, so that ScaleWidth and ScaleHeight
represent
 pixel measurements.



 Paul Crisp

 Syntegra
 Innovation Place Delta Bank Road Newcastle NE11 9DJ
 Tel 0191 461 4522 Fax 0191 460 1987


 -Original Message-
 From: Windeler, David [mailto:[EMAIL PROTECTED]
 Sent: 28 February 2003 14:55
 To: 'MapInfo-L (E-mail)
 Subject: MI-L Integrated Mapping Problem


 To whom it may concern:

 I have a VB program that links to a table in MapInfo. I run a query and
wish
 to display the results in a PictureBox frame. I have no problem doing
this.
 However, when I resize the pictureBox control using the Form's ReSize
event,
 I notice that the PictureBox contents (the results of the query displayed
as
 a browser) do no resize. I was wondering how I would go about resizing the
 PictureBox contents when the form is resized.

 David Windeler Hons. BSc. Geo, GIS Apps. Specialist
 GIS Technician / Applications Specialist
 City Of Vaughan

 Engineering

Re: MI-L Repetitive Launch of Interner Browser

2003-01-15 Thread Trey Pattillo
Hello,

Or you can use HTML-View [380k Delphi exe]
Download: http://www.wap3.com/download/HtmlView.zip

+ Uses M$ IE engine
+ Control with command line parameters
+ Only 1 window open at a time [if nav is enabled user can go back]
+ Toggle the navigation bar [back, forward address]
+ Stop user from closing window [ X is not active]
+ Set top, left, width, height and Stay On Top
+ Set the window title [default is the file/page from /F= parameter]
+ Stop user from linking from within page [Jiva will still work but Html
will not]
+ Easy to call from MapBasic or any other application
DIM sHtml AS String
sHtml=[drive:\path]htmlview.exe
/f=+chr$(34)+c:\webdoc.htm+chr$(34)+ /navhide
RUN PROGRAM sHtml
UNDIM sHtml
+ Works great in a SelChangedHandler
Get value from the field and call with above code
+ Clients can click on a geocoded location and get the web page
with all the Eye Candy pictures/movies, description, directions, sell
price, etc

Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322

- Original Message -
From: Simon Helyar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 03:50 AM
Subject: MI-L Repetitive Launch of Interner Browser



 Hi All,

 Please can someone help me.

 I have written an application in MapBasic that allows the user to launch a
web browser (Internet Explorer) and jump directly to a user selected
hyperlink.
 Command syntax uses the RUN command : RUN PROGRAM c:\program
files\Internet Explorer\IExplore.exe  weblink.

 However, everytime the user chooses this option in the application a new
browser is launched, thereby, resulting in multiple IE windows being open.

 Question : Is there any way in MapBasic to check if IE (or any other
application) is already running ?
 If IE is not running launch the browser with the appropriate hyperlink
 If IE is running refresh the window to reflect the new hyperlink.

 I would really appreciate some help.

 Regards,

 Simon Helyar

 -
 List hosting provided by Directions Magazine | www.directionsmag.com |
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 Message number: 4924



-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 4954




Re: MI-L Patents - here we go again

2003-01-14 Thread Trey Pattillo

This sums it up real quick...

The real product is stock and the valued customer is the stock holder

Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322


- Original Message -
From: Lars V. Nielsen [EMAIL PROTECTED]
To: MAPINFO-L Mailinglist [EMAIL PROTECTED]
Sent: Tuesday, January 14, 2003 01:39 AM
Subject: MI-L Patents - here we go again


 Y'all,

 Is it just me, or does this recent story on DirMag also strike others as
horrendeous:
 http://www.directionsmag.com/pressreleases.php?press_id=6224

 
 Navigation Technologies' 30th patent in 2002 covers a server-based system
that allows online navigation users to assign their own
 keywords to map-locations, in effect allowing users to create unique,
personalized geographical 'bookmarks' that they can share with
 others. For example, an individual could register Frank's surprise party
which would link to a specific restaurant location. Using
 the bookmarked phrase, guests would then route to their destination.
Beyond personal applications, the patent covers businesses,
 real estate and delivery services.
 

 I have nothing against anyone protecting real inventions or really
original ideas, but the above simply doesn't fit either category,
 imho. And as a matter of fact, our local mapping agency has for several
years now been selling a relatively cheap software package
 that enables the user to:
 - add personal nameable themes to the included maps
 - exchange these themes with other people online
 - hook a GPS into the package enabling navigation

 Combine these and you have a system that allows online navigation users
to assign their own keywords to map-locations (...) they
 can share with others. So has Navtech really invented what they claim or
not ?

 Requesting such patents only degrades the overall inclination to innovate,
imho, and also degrades the credibility of the company in
 question.

 What do you think ?

 Best regards/Med venlig hilsen
 Lars V. Nielsen
 GisPro, Denmark
 http://www.gispro.dk/
 http://hjem.get2net.dk/lars-online/
 WGS84: 10.20'40E 55.20'20N


 -
 List hosting provided by Directions Magazine | www.directionsmag.com |
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 Message number: 4879



-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 4902




Re: MI-L OT: source of unwanted mail

2003-01-12 Thread Trey Pattillo

Hi all,

Our office spam count went from 80 in Oct, 140 Nov, 275 Dec...same trend
during summer before school started in Aug/Sep but at a 40% less.
So far Jan is not looking to drop back like Jun and Oct [may be worse than
the holidays] and that follows all trend predictions for 2003

I just installed POPFile [free as in beer] which is a Bayesian filter and it
also digs into the all html base64 encoded and has been nailing them 100%.
It's available at http://popfile.sourceforge.net.
It's out-of-box training curve this week was 85 percent and I'll reset the
counters tomorrow to get a better real feel and should get 99% in the next
couple of weeks. We have 30 diverse people in 5 departments which will
probably increase the curve over a home or office with a few people with the
same web/surfing habits. We are running up to 200 total mails per day M-F
but I can not have any good ones getting canned.

Here's one of my nifty links for figuring out spam.  It is the low-res
link 450k vs the hi-res 750k who's sleeping with who.
[note unless you have the largest plotter its way too big to print]

Robert West has definately done his header homework
http://www.cluelessmailers.org/spamdemic/mapfullsizegiflow.html




Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
N27.799013 W-97.665322



- Original Message -
From: Simmonds, Ashley (PTB) [EMAIL PROTECTED]
To: 'Mapinfo List (E-mail)' [EMAIL PROTECTED]
Sent: Sunday, January 12, 2003 06:36 PM
Subject: MI-L OT: source of unwanted mail


 hi people, i'm just wondering if anyone else has started recieving spam
and
 virus emails over the last few weaks.

 i have been posting to this list for about a year now and have never had a
 problem, however since christmas i have been getting a few dodgy emails
sent
 to my work address.

 i know it's almost impossible to avoid spam nowadays, but i'd like to know
 whether my address is being sucked out of GIS related emails before my I.T
.
 department comes over to harass me about my activities.

 this and the GIS List are the only places i know of outside of my intranet
 where i have posted emails with this address.  it's nothing major, but
it's
 just strange that it's only started as of a few weeks ago.

 the offending domains have been primarily freescreensavers.com,
 cupid.com, and a couple random others, even mcafee.com.

 ash.

 -
 List hosting provided by Directions Magazine | www.directionsmag.com |
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 Message number: 4858



-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 4860




Re: MI-L Integrated Mapping - Resizing forms

2002-11-26 Thread Trey Pattillo
Hello,

In the Resize event you will need to tell MI to reset it's frame to match

I use Delphi and the code is  := is =  and ' is  and .Do(...) is .Do
.
for comparisons to to VB

  Trash:='Set Window '+BrowserID+
 ' width '+floattostr(frmBrowse.pnlBrowse.clientwidth/96)+
 ' height '+floattostr(frmbrowse.pnlBrowse.clientheight/96);
  MIMap.Do(Trash);

I get the BrowserID [handle of browse frame] early in the program and reuse
it.
frmBrowse is a separate frame [window] for the brower only...
I don't do MIDI frames so this one is just on top of the main frame.
pnlBrowse is the picture box that holds the MI windows
and is set for alignment=client so it always fills the window
and then the clientheight and width

The divide by 96 is to get the number right between pixels and MI's sizing
but
since VB will do twips and other things you will have to play with it.


- Original Message -
From: Mark Williamson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 26, 2002 1:02 PM
Subject: MI-L Integrated Mapping - Resizing forms


Hi

I am using VB to try out a few IM techniques. I cant work out out how to get
mapinfo to redraw the contents of the form window when it is resized as the
map window originally drawn on the form reamins the same size.

Basically I want it to look like the map window is there already when the
form resized.
Or would it just be better to make the form static.

Thanks in advance

Mark


-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 4291




Re: MI-L Address Range Overlap

2002-11-06 Thread Trey Pattillo

hello,


another way but it will still take a MB app or wear out the enter key in
MBWin

select * from streettable order by street name into work
walk the work table
get the min(fromright,toright) into address and streetname
now do a find on that street address
if  return value  1 then insert a push pin into cosmetic layer at
commandinfox, commandinfoy

Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N


- Original Message -
From: Morrier, Steve [EMAIL PROTECTED]
To: Lista MapInfo Ingles [EMAIL PROTECTED]
Sent: 06 November, 2002 14:01
Subject: MI-L Address Range Overlap


 Hi All,

 I am not sure if this one can be done or not but I am hoping some Street
 File guru can help me.

 Is there a way to find all street segments that have an overlap in their
 address ranges? For example one block/segment of Main St. may have a
 FromLeft =20 and ToLeft = 30, I want to check to make sure the next
segment
 in line doesn't have something like FromLeft = 28 and ToLeft = 38.

 The simple part of the query would be select object where FromLeft 
ToLeft
 of previous segment.

 My problem is telling the query to look at segments based on line
direction
 and name so that only consecutive streets are compared.

 TIA

 Steve



-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 3962




Re: MI-L Export file info from Win Explorer

2002-10-23 Thread Trey Pattillo

hello all,

below in the code section is a MB example of using the WinAPI to Get
Directory Info

I'll but together a DLL that can drop a tab delimited file that you specify
or return a string with the info
It will have filename, size, times

In the section ' START DOING WHAT YOU NEED HERE
you can get any of the record data including
FileSize = (nFileSizeHigh * 256) + nFileSizeLow

Expanding the FileDate is a bit tricky
It is built into Delphi but I don't have the hard code
It is a encoded 64 bit integer in FileTime Format


File Attributes hasthe following Additive value
  faReadOnly  = $0001
  faHidden= $0002
  faSysFile   = $0004
  faVolumeID  = $0008
  faDirectory = $0010
  faArchive   = $0020



=   CODE BEGIN  ==

'
' WinAPI Demo
'   Find Files
'
'  IN: FileFind (string)
'full Drive:\Path\Name.Ext of the file to find
'ex: c:\*.* -- finds all files
'ex: c:\*.bat -- returns all files with ext of BAT
'ex: c:\MyFile.txt -- same as FileExists(file)
'ex: c:\T?M.txt -- single char wildcard TIM TOM etc

' OUT: lpFindFileData.cFileName (string) hold last file name [no path]
'  FindMore (integer) returns zero [0] when no more matches
'
'
'  DATA TYPES USED BY WinAPI  ===
'   WARNING: DO NOT MODIFY===
'

'DATA STRUCTURE FOR Win32 TO STORE FOUND INFORMATION
DEFINE Max_Path 120
Type WIN32_FIND_DATA
dwFileAttributes As Integer
ftCreationTime As Float
ftLastAccessTime As Float
ftLastWriteTime As Float
nFileSizeHigh As Integer
nFileSizeLow As Integer
dwReserved0 As Integer
dwReserved1 As Integer
cFileName As String * Max_Path
cAlternate As String * 14
End Type

'===
'==  API METHODS USED  =
'===

'CALLED FIRST [ONLY ONCE] TO BEGIN
Declare Function FindFirstFile Lib kernel32 Alias FindFirstFileA (ByVal
lpFileName As String, lpFindFileData As WIN32_FIND_DATA) As Integer

'CALLED REPEATEDLY UNTIL THE RETURN IS 0 [zero] == FINISHED
Declare Function FindNextFile Lib kernel32 Alias FindNextFileA (ByVal
hFindFile As Integer, lpFindFileData As WIN32_FIND_DATA) As Integer



'
'==  USER VARIABLE ASSIGNMENTS  =
'

'HOLDS THE WinHandle FOR THE LIFE OF THE CALLS
DIM FileHnd as INTEGER

'HOLDS THEN DATA TYPE STRUCTURE FOR WinAPI
DIM lpFindFileData as WIN32_FIND_DATA

'STRING THE USER WISHES TO SEARCH FOR
DIM FileFind as String

'RECURSION VARIABLE TO FOR CALL BACK TO FindNext FUNCTION
dim FindMore as integer

'=
'  BEGINNING OF PROCEDURE  ===
'=

'CLEAR THE MESSAGE WINDOW
print chr$(12)

'SET THE FIRST FILE TO FIND [including drive\path]
'* YOU CHANGE THIS VALUE TO WHAT YOU NEED
FileFind=C:\*.*

'BEGIN THE CALL BACK RECURSION TO FIND ALL OF THE FILES
'STOPS WHEN FindMore BECOMES ZERO
'* ONLY MODIFY INDICATED SECTION FOR YOU NEEDS
FileHnd = FindFirstFile(FileFind,lpFindFileData)
if FileHnd  0 then
  FindMore=FileHnd
  while FindMore  0
' START DOING WHAT YOU NEED HERE
print lpFindFileData.cFileName
' END DOING WHAT YOU NEED
FindMore=FindNextFile(FileHnd,lpFindFileData)
  wend
else
  'TELL USER THAT THE FIND FAILED
  '** YOU CAN REMOVE THIS IF YOU DO NOT NEED IT
  note NO FILES FOUND FOR: +chr$(10)++FileFind+
end if


=  CODE END  

Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N


- Original Message -
From: Tom Thomson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 22 October, 2002 20:09
Subject: MI-L Export file info from Win Explorer


 I was wondering if it is possible to get file name, size, date and time
 info, etc out of Win Explorer window to insert into a spreadsheet?

 I tried cut n pasteno go
 I tried print to file...no go
 I tried the net for some keen utilityso far no go

 Any ideas???  Thanks in advance...tom

 
 Tom Thomson  Northwest Agricultural Consulting
 1275 Oak Villa Road  [EMAIL PROTECTED]
 Dallas, Oregon 97338Phone/FAX 503-623-0468

 The only difference between a problem and a solution is that
 everyone understands the solution. Charles Kettering
 


 -
 List hosting provided by Directions Magazine

Re: MI-L Large Access database build problems

2002-10-22 Thread Trey Pattillo

The big stuff is there you just have to know where to look.

If you can stand the license costs Borland Interbase
www.borland.com/interbase/
or go OpenSource with FireBird [ OS maintained InterBase ]
http://firebird.sourceforge.net
[ these will handle terabyte single file db's ]

My story on M$ Axxess grandma told me years ago that if I drop the cookie
and break it then she'll throw all the cookies in the trash 'cause they
gonna have glass in'm - and she did - and she said never put the brownies in
with the sugar cookies 'cause it'll make'm taste like heck - she was wrong -
tasted like *^%

Here's some current thoughts of the day about the M$
ogilopoly...
Can you trust your computer? -
http://newsforge.com/newsforge/02/10/21/1449250.shtml?tid=19
Microsoft forces banks to break the law 
http://newsvac.newsforge.com/newsvac/02/10/22/1717225.shtml?tid=9


Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N


- Original Message -
From: Bill Thoen [EMAIL PROTECTED]
To: MapInfo-L [EMAIL PROTECTED]
Sent: 22 October, 2002 18:32
Subject: Re: MI-L Large Access database build problems


 Yes, the facts that PostgreSQL will run under Windows, database
 size is limited by disk space only (they say that 60GB databases
 exist), table sizes are also unlimited, field sizes limited to
 1GB, it's open source (and freely downloadable) has ODBC support,
 etc. makes it look pretty darn attractive.

 Have you been able to connect it to MapInfo yet?

 - Bill Thoen

 Juanse wrote:
 
  I will seriously suggest PostgreSQL/PostGIS for geometric/geographic
data!!
  (Opensource). check http://postgis.refractions.net
 
  Juanse
  temuko-Chile

 -
 List hosting provided by Directions Magazine | www.directionsmag.com |
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 Message number: 3709



-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 3711




MI-L FYI: BugBear Virus not from me

2002-10-04 Thread Trey Pattillo


hello all,

I had 2 copies of an email tonight and also D. Reid on the list emailed me
asking if I had sent him something.

This is the BugBear virus link to Computer Associates
http://www3.ca.com/virusinfo/virus.asp?id=13233

The reply to reads --  trey (at) erols.com    That is not me (at)
wap3.com

This is a NASTY TROJAN so get you virus scanners updated and do not open
unknown mails.

If anyone can figure how where this came from here are is the email minus
the virus [notice there is no TO]:

===

Return-Path: [EMAIL PROTECTED]
Received: from mta05.mail.mel.aone.net.au (203.2.192.85) by
mail.san.yahoo.com (6.5.029)
id 3D9D75460003DC8B; Fri, 4 Oct 2002 15:13:34 -0700
Received: from dmh ([63.60.42.245]) by mta05.mail.mel.aone.net.au with SMTP
  id 20021004221446.MYJC28826.mta05.mail.mel.aone.net.au@dmh;
  Sat, 5 Oct 2002 08:14:46 +1000
From:  Trey Pattillo [EMAIL PROTECTED]
Subject:  MI get
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=--9BBVUIKWX8H944
Message-Id: 20021004221446.MYJC28826.mta05.mail.mel.aone.net.au@dmh
Date: Sat, 5 Oct 2002 08:15:07 +1000

9BBVUIKWX8H944
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

index mapinfo-l
end

Trey Pattillo
[EMAIL PROTECTED]
http://www.wap3.com

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
unsubscribe MAPINFO-L in the message body, or contact [EMAIL PROTECTED]
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
unsubscribe MAPINFO-L in the message body, or contact [EMAIL PROTECTED]

9BBVUIKWX8H944
Content-Type: application/x-msdownload; name=jrx3810.doc.exe
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=jrx3810.doc.exe

[ VIRUS CODE FOLLOWS HERE ]


Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N



-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 3418




Re: MI-L Command Line and MapBasic

2002-09-28 Thread Trey Pattillo


Hello,

1) try quotes around some.mbx arg1 arg2 - same thought that you can't use
c:\program files\myapp.mbx.with out quotes -- 'doze splits it into
c:\program with error and files\myapp.bx with error. The defination of a
parameter separation, by os design, is a white space.

2) write out a text/ini file from your app, then have the mbx read it, if
not fileexists(myparams.txt) then exit, else read and process and delete
the file [indicating processing is done]

3) Why launch MI on its own, put it in integration [picture box in a new
form to make it look like it is running on its own] and then send run
application c:\some path\some.mbx arg1 agr2  to MI

my $0.175us

as for:   P.S. If the solution works from a .BAT file then it will work
from ShellExecute.
I wouldn't bet my retirement on it.
They are 2 different environments that mostly collaborate with each other.
Copying from a console window is not the same Ctrl+V as it is in a 'doze
frame.
[there are global clipboards and priviate clipboards and consoles don't have
a clipboard]
Plus M$ has pretty well killed cmd.com anyway.


Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N


- Original Message -
From: Henry Unger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 28 September, 2002 19:09
Subject: MI-L Command Line and MapBasic


 Hi,

 I have a Windows application that does a Win32 API ShellExecute invoking
 MapInfo and a MapBasic application to which I want to pass command line
 arguments.

 Example:

 C:\Program Files\...\MAPINFOW.EXE -nosplash MyMBApp.MBX arg1 arg2 arg3

 My MB program calls Win32 API GetCommandLine to get the command line which
I
 then process. After my MB program finishes, MapInfo tries to process the
 arg1, arg2, and arg3 arguments and displays error messages since arg1,
arg2,
 and arg3 are not tables.

 How can I pass command line arguments to the MBX and not have MapInfo try
to
 open them as tables?

 Thanks.

 Henry Unger

 P.S. If the solution works from a .BAT file then it will work from
 ShellExecute.


 -
 List hosting provided by Directions Magazine | www.directionsmag.com |
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 Message number: 3298



-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 3299




Re: MI-L MI Removing Min Max Close Buttons using VB

2002-09-26 Thread Trey Pattillo

Hello,

I have the full documented code in the WinAPI section of the website
www.wap3.com

This code allows full control over the button functions [min no max / max no
min / etc]

This link goes right there:  http://www.wap3.com/_WinAPI/NoClose.htm



Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N


- Original Message -
From: A.W. Male  Associates Pty Ltd [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 26 September, 2002 00:21
Subject: MI-L MI Removing Min Max Close Buttons using VB


 Hi All,

 I am having trouble finding some code that will remove the min max and
 close buttons from the map window . I still require the MI window min max
 and close buttons. My MI cession is started from within MsAccess and I
 don't use MapBasic. I am aware of API calls, but I am not to sure how I
 should approach this.

 Is there an alternative using a modified menu in the workspace ??

 Any help will be very much appreciated


 Thanks



 Alistair


 -
 List hosting provided by Directions Magazine | www.directionsmag.com |
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 Message number: 3257



-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 3276




Re: MI-L Parsing columns

2002-09-26 Thread Trey Pattillo

Hello,

From Dundat's Dictionary
Data Scrubbing - programming code to remove undesirable data that is not
much better than kill-filing spam

Some I can think of for parsing full addresses
has a pre-directional  100 W Main St
has long street name  101 North Sandy Hollow Dr [not N predir but part of
name]
has extra spaces  100 Some  St
has spaces at end  100 Some St  | bar is end of data

This is something that really requires MapBasic or an Integrated App to do.

I have several types or parses I've done over the years.

Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N


- Original Message -
From: Steve Carlsson [EMAIL PROTECTED]
To: MapInfo-L [EMAIL PROTECTED]
Sent: 26 September, 2002 19:27
Subject: MI-L Parsing columns


 Hi listers

 I have the following expression which I use in a MapBasic window
 routine.

 The problem is that I want it to parse from the last space onwards but I
get
 strange results.any ideas on what is wrong with it?



 Remove all characters to right of last space

 Update Table_name Set Street_number_column = Left$(adress_column,
 (InStr(1,adress_column, )-1)), Street_name_column= Right$(adress_column,
 Len(adress_column)-InStr(1,adress_column, ))




 Regards




 Steve Carlsson
 Sales Manager
 Digital Mapping Solutions
 Ph 089 474 6311 Fax 089 474 6411
 Mobile 0411 736 116
 2/2 Hardy Street SOUTH PERTH WA 6151
 www.mapsolutions.com.au





-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 3278




Re: MI-L Line distortion

2002-09-18 Thread Trey Pattillo

hello,

I'm only running MI 6.0 so I can't say if this has improved or not in v7

At some point you will experience shifting lines [were horizontal and now
show at 45deg] and selecting will no longer work.
I have found that there is a relationship with what your hardware and OS
are.
I have a P3-1000, 256meg, 20gig ATA66, TNT2 M64 32meg video, on Win2k-sp3 at
the office
and a P4-1500, 512meg, 13gig ATA66 and 19gig ATA100, TNT2 MX400 64meg video,
on Win2k-sp3 here

Testing here I got down to 0.25m and lost the selection and the lines
disappeared when I zoomed closer that 0.00023m.

On the memory, unless you are doing some really monsterous stuff 256
should be fine but memory is cheap so go for 512 or the max.
I've got IE6, LookOutEx 6, Delphi 6, MI6, Mercury32 [mail server], and
Exploder running and still have 105k of 512k free physical memory and do
about the same abuse at the office except that the mail server is different
box.  Both machines are about the same as far as services, mail scanner,
virus scanner, ad blocker, etc in the background.

My $0.0175us [adjusted for inflation] is:
1 - get a decent video -- M64 about $39us and MX400 about $79us [with a fan
on the chip]
2 - get all the memory you can
3 - if you by the hardware at www.newegg.com [read upgrade system] you can
get Win2k for $149us [OEM version]

I remember back in 94 with v3.0, trying to zoom in to snap the end points
until about 6 months later, I read the manual and found that snap existed
with the S key...yep RTFM paid off



Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N


- Original Message -
From: Bull, Leo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 18 September, 2002 19:02
Subject: MI-L Line distortion



 I am running Windows 98 and MI 7.0.  If I am editing line work in a table
 and Zoom into the lines at less than 100 m some of the lines distort and I
 am unable to select some of the lines.

 Has any one encountered this problem or is able to help me as the Mapinfo
 tech support in Australia was unable shed any light on the subject.

 Thank you for any assistance

 Leo Bull
 Green Triangle Forest Products
 Mt Gambier
 South Australia.

 -
 List hosting provided by Directions Magazine | www.directionsmag.com |
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 Message number: 3118



-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 3119




Re: MI-L MapBasic Save Window As problem

2002-06-05 Thread Trey Pattillo


here is my $0.0175us MBWin solution

1) Open MapBasic Window
2) copy and paste the 2 line below into the window [using CTRL+V]
[ note line 1 starts with select and line 2 starts with update -- no
word wrapping]

select * from Table1 where instr( 1, Col1,  )0 into work browse * from
work

update work set Col1=mid$( Col1,instr( 1, Col1,   ) + 1, len( Col1 ) )

3) replace Table1 with your table name
4) replace Col1 with your column name
[ note both lines are quote-space-quote ]
5) put cursor on line 1 and hit enter -- just for visual as table work is
emply when finished
6) put cursor on line 2 and keep hitting enter [ will take more than once]
ie: State Hwy 286  Hwy 286  286 - 2 runs
7) do #5 to see what is left and #6 again if needed


Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N


- Original Message -
From: Nancy Cope [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 05 June, 2002 09:30
Subject: MI-L MapBasic Save Window As problem



 I am having a problem with the results of saving a Layout to a JPG file.
 The jpeg file is created, however one of the map layers is missing on some
 maps. It is just a polygon layer
 with just an outline - no shading. When the workspace is opened I can view
 the layout and the missing
 layer from the jpeg is on the layout. I can then manually select Save
Window
 As and the new file is saved
 correctly.
 I create several maps through code this way. The layer that is missing on
 some maps has the same style
 as layers on other maps, where the jpeg is ok.  There are 31 maps and 13
of
 them have the problem with the
 missing layer in the jpeg. The problem is I now have to open each jpeg to
 see which ones I need to open
 the workspace for and manually save the jpeg.

 Does anybody know what causes this problem?

 Nancy


 -
 List hosting provided by Directions Magazine | www.directionsmag.com |
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: MI-L Extracting Numbers

2002-06-05 Thread Trey Pattillo


Sorry for the wrong reply postbeen a long day.


here is my $0.0175us MBWin solution

1) Open MapBasic Window
2) copy and paste the 2 line below into the window [using CTRL+V]
[ note line 1 starts with select and line 2 starts with update -- no
word wrapping]

select * from Table1 where instr( 1, Col1,  )0 into work browse * from
work

update work set Col1=mid$( Col1,instr( 1, Col1,   ) + 1, len( Col1 ) )

3) replace Table1 with your table name
4) replace Col1 with your column name
[ note both lines are quote-space-quote ]
5) put cursor on line 1 and hit enter -- just for visual as table work is
emply when finished
6) put cursor on line 2 and keep hitting enter [ will take more than once]
ie: State Hwy 286  Hwy 286  286 - 2 runs
7) do #5 to see what is left and #6 again if needed






Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N


- Original Message - 
From: Brandi McGunigal [EMAIL PROTECTED]
To: MapInfo List [EMAIL PROTECTED]
Sent: 05 June, 2002 16:06
Subject: MI-L Extracting Numbers


 I am using MapInfo 4.1 and do NOT have MapBasic. 
 
  
 
  I have a character field called name.  Examples of attributes in this
 field include State Highway 75, Highway 75, Highway 275, etc.  Is
 there a way that I can extract just the numbers?  For State Highway
 75, and Highway 75, I want just 75, and for Highway 275, I want
 just 275.  The table contains thousands of records and there are several
 possibilities of numbers in that field.
 
  
 
 Thanks in advance,
 
  
 
 Brandi McGunigal
 
 GIS Technician
 
 Traxis Inc.
 
 Phone: (306) 978-0445
 
 E-mail: [EMAIL PROTECTED]
 
  
 
 

-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: MI-L Multiuser problem

2002-05-28 Thread Trey Pattillo


here's what I found playing around a couple of years ago

Users 1, 2, and 3 open the same table from a file server in that order
changes in 1 are seen by 2 and 3 but changes by 2 are seen by 3 and
1 will never see them until the close and reopen the table, but now
the order is 2,3,1.

Does anyone know what the Server installation is for under the
custom installation.  I've have seen any difference there either

Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N


- Original Message -
From: MAGS-Gerencia [EMAIL PROTECTED]
To: MapInfo-L [EMAIL PROTECTED]
Sent: 28 May, 2002 07:49
Subject: MI-L Multiuser problem


Hi,

I have an .mbx application to insert objects in a linked table.
From another PC, another user has the same table open.
When I am inserting objets, and the other user make a pan, zoom, etc
sometimes the map dissapears and only appears after several pan or zooms.
(redraws).

In the edition PC I am using Set File Timeout 10.

Anyone can help me how to solve this problem or if is it impossible to solve
it in MapInfo ?
We use MapInfo 6.0

Best Regards


-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




MI-L Where is MI for Tux

2002-05-23 Thread Trey Pattillo


Here's a link to the *press release* hosted at NewForge

 ESRI now offers GIS solutions for Linux users 
http://newsvac.newsforge.com/newsvac/02/05/23/1648247.shtml?tid=52

Behind the 8-ball, don't think so, looks like the codecritters at Troy
knocked it off the table and lost it.

Just a note..no Ake for me
still working on my own 911 solution [read PV for Tux] with Borland Kylix
.when I have time.


Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N



-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: MI-L MI and Linux

2002-05-15 Thread Trey Pattillo

Hello,

Back in Feb. I tried the latest release of WINE with MI6.0
The install was fine, but I got what appeared to be a Wine related message
that the section of a dll was not
present.

It's just a matter of time as the push is to topple the office monopoly
first.

I have not been on the prowel lately, but the last I checked [about Mar]
was that TatukGIS has still not completed it's Sept 2001 commitment of
porting their native Delphi GIS to linux.  Don't recall if I did a test with
Delphi Win compile on my nix box, but all of my other apps worked fine with
Wine and if I did test mapping it was definately a legacy speed issue, so
development is somewhat on hold until I get a workable nix solution.  This
is for my current 911 mapping application that sits around at low volume
sites and might put 5 to 20 thumbtacks a day on the map.

My latest find last weekend for Delphi was ezGIS, but I this week was not a
good one for testing.
Both of these have OCX controls, and downloadable working examples something
like ProViewer.

Here's a link from a goolge search  GIS LINUX
http://www.tenlinks.com/mapgis/products/linux.HTM


Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N


- Original Message -
From: Ian Tidy [EMAIL PROTECTED]
To: MapInfo-L (E-mail) [EMAIL PROTECTED]
Sent: 15 May, 2002 18:48
Subject: MI-L MI and Linux


 Hi All

 Has anyone either considered or tried running MI Pro under Linux??  I am
 considering attempting this and am looking for some input.  We are looking
 at replacing some of our servers and desktops with Linux based machines,
but
 I have concerns with some Windows based software.

 Any comments??

 Cheers Ian

 Ian Tidy
 Network - Technical Assistant
 Marlborough Lines
 1 Alfred Street, P.O. Box 144, Blenheim, New Zealand
 Phone + 64 (3) 577 7007, Fax + 64 (3) 577 7014
 DDI Phone +64 (3) 579 3831, Mobile + 64 (27) 283 1862
 mailto:[EMAIL PROTECTED]
 http://www.marlboroughlines.co.nz


 CAUTION:This e-mail may contain attached file(s).  This has been virus
scanned, but care should be taken when opening any attachment(s).

 This e-mail is only intended to be read by the named recipient.  It may
contain information which is confidential or subject to legal privilege.  If
you are not the intended recipient you must delete this e-mail and you may
not use any information conta
 ined in it.  Legal privilege is not waived because you have read this
e-mail.

 -
 List hosting provided by Directions Magazine | www.directionsmag.com |
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




MI-L Off-Topic: True handheld PC

2002-04-16 Thread Trey Pattillo


For those who do remote data collection, like David Reid and I have
discussed, here's the answer...

A full PC from OQO [oh-q-oh]

800mHz CPU, 512 cache, 10g HD, touch screen, vga, FireWire  USB, 802.11 
BlueTooth wireless, and docking, with M$ WinXP Pro.
They say the only thing it doesn't have inside is a CD, but a usb external
r/w fixes that problem.

Even M$'$ Jim Allchin had a good word, but that might be from all the unused
copies of XP in the warehouses :-)

Write up link at SiliconValley Internet
http://siliconvalley.internet.com/news/article/0,2198,3531_1010671,00.html

Now I might be able to covert my car back from looking like a military war
wagon full of gadgets and cables to something I can drop in the glove box.
And at $1000us, dude your *not* gettin' a Dell

Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N



-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: MI-L mapbasic set map zoom

2002-04-09 Thread Trey Pattillo

Hello,

the zoom in is distance units
you are using coodinates from the bounding

the easiest way is to let MI do what it does best mapping and
MB [integration VB etc] is for user interface

just issue M_QUERY_FIND_SELECTION
or in code
Run Menu Command 306

you must haveinclude menu.def at start of your code


Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N


- Original Message - 
From: Jonathan Stavis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 09 April, 2002 17:58
Subject: MI-L mapbasic set map zoom


 Hi,
 
 Does anyone know how MapInfo resolves zoom distances based on degrees? 
 The following code is not doing what I would expect (to zoom a window to
 the x-extents of one specific object)
 
 minx = objectgeography(ob,obj_geo_minx)
 maxx = objectgeography(ob,obj_geo_maxx)
 miny = ...
 maxy = ...
 centerx = (maxx-minx)/2
 centery = ...
 set map center(centerx,centery)
 set map zoom (maxx-minx) units degree
 
 I have verified that the bounding units are degrees and even using the
 results from a simple subtraction from the object properties dialog does
 not get the extents right.
 
 I was under the impression that the zoom distance parameter for set
 map zoom should only affect the x-extents of the map.  Is this
 incorrect?
 
 If there is an easier way to center an object and zoom to its greatest
 extent I would love to know.
 
 Thanks,
 Jon
 
 
 
 
 -
 List hosting provided by Directions Magazine | www.directionsmag.com |
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




SUM: MI-L MB: Error UNDIM

2002-03-25 Thread Trey Pattillo


thanks for the responses, Jacques woke me up after about 15 minutes
I've been doing way too much integrated work [where it must be used as
with MBWin]

like Bill says RTFM..

Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: 25 March, 2002 01:17
Subject: Re: MI-L MB: Error UNDIM


  never have seen this error working in MB ver 4 or 6 [both ver on
machines
 at
  home and office] and fails everytime
  ...
  dim x as integer
  x=10
  print x
  undim x
  ...

 Same error occurred on my machine - then I read the MB help file ;-)

 Restrictions

 The UnDim statement cannot be used in a compiled MapBasic program; it may
 only be used within a workspace or entered through the MapBasic window.


 Jakob


**

 Jakob Lanstorp
 M.Sc., GIS-Developer
 Kampsax A/S
 GIS Software  Solutions
 Rugaardsvej 55, 5000 Odense, DK
 tel: +45 6313 5013,  dir:+45 6313 5021,  fax: +45 6313 5090
 Mailto:[EMAIL PROTECTED]  -  http://www.kampsax.dk
 Authorized MapInfo Partner  Distributor in Denmark and Norway.


**

 See Denmark from above on: http://www.kortal.dk
 - Videresendt af Jakob Lanstorp/Kampsax - 25-03-02 08:09 -
 -

 Trey
 PattilloTil:MapInfo List
[EMAIL PROTECTED]
 [EMAIL PROTECTED]cc:
 m   Vedr.:  MI-L MB: Error UNDIM

 24-03-02
 17:08
 Besvar
 venligst til
 Trey
 Pattillo





 hello all,

 never have seen this error working in MB ver 4 or 6 [both ver on machines
 at
 home and office] and fails everytime
 ...
 dim x as integer
 x=10
 print x
 undim x
 ...

 no matter where undim is [as above or inside 'main' or other sub] MB
 reports
 (file:line) Command unavailable: undim
 (file:line) Missing '=' in assignment to x



 Trey Pattillo
 [EMAIL PROTECTED]
 www.wap3.com
 -97.665333W 27.799121N



 -
 List hosting provided by Directions Magazine | www.directionsmag.com |
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]







-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: MI-L MI: Lines in layer are not selectable

2002-03-24 Thread Trey Pattillo


Michael,

Hate to bear bad news, but after 9 yrs of MI the same thing happened a few
weeks ago.

Line is not selectable with selector and a query will show in the data as
selected but the line is still unselected.

I transport via CDRW from the office home every day, so after about 2 hrs of
work I gave up.

I can't say if the CD was corrupted or not, but the file at the office was
fine.

Just my thought.the ID file has become corrupted..hope you can
back-track


Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N


- Original Message -
From: Michael Naughton [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 23 March, 2002 22:11
Subject: MI-L MI: Lines in layer are not selectable


 I have a layer that has line segments in it that I can't select no matter
 what I do. This is the first time in 6 years working with MI that I have
 ever had this problem. Layer is editable and all other line segments can
be
 selected and edited except for certain line segments. Is there some other
 way I can isolate these lines and delete them, they are part of a huge ROW
 file. I have closed all other tables also. TIA


 --
 Michael Naughton
 Huntington Station, NY
 [EMAIL PROTECTED]
 F 413-556-5826
 -73.4008061   40.8460857

 Email is packaged by intellectual weight,
 not volume. Some settling of contents
 may have occurred during transmission.
 ---



-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




MI-L MB: Error UNDIM

2002-03-24 Thread Trey Pattillo

hello all,

never have seen this error working in MB ver 4 or 6 [both ver on machines at
home and office] and fails everytime
...
dim x as integer
x=10
print x
undim x
...

no matter where undim is [as above or inside 'main' or other sub] MB reports
(file:line) Command unavailable: undim
(file:line) Missing '=' in assignment to x



Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N



-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: MI-L Problems creating a MDI aplication with mapinfo and Visual C++

2002-03-08 Thread Trey Pattillo

I have seen this, but it has been a hard week and the long-term memory is
having trouble

If I remember, find the app/code that did it, or recreate it, I'll let you
know.

I use Delphi, so if you are not, it definately has something to do with the
integration

Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N


- Original Message -
From: porress [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 08 March, 2002 13:22
Subject: MI-L Problems creating a MDI aplication with mapinfo and Visual C++




 I try to develop an aplication using a MDI aplication, I open the View =
 and the tables, the aplication seems to be ok, but if you do a right =
 click with the mouse in the map and yoy try to do somethig like Add =
 layer, etc. The aplication show a MessageBox error with this text:


   It can not do a output call since the aplication that it=B4s =
 executing a sincronized call of input

 excuse me for my bab english in spanish the message is this:

 No se puede hacer una llamada de salida desde la aplicacion que esta =
 ejecutando una llamada de sincronizacion de entrada

 Could someone help me??





 ___
 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 More on Integrated Mapping; Performance this time.

2002-01-23 Thread Trey Pattillo


Hello,

As I have always said.
Let each do its best part, *integration* for the GUI, and
MI for the maps.

As some of you know, I work exclusively in Delphi except
for an occassional quicky or core-logic prototype in MB.

BUT.I have Delphi applications that are 100% integration,
ie. I'm passing all command strings with DO and getting
information with EVAL.  Some run as fast, and maybe
just a bit faster, but overall there is not a large performance hit.

Some Hints..VB is easier to example than Delphi.oh,well...

1) DIM your variables in MI unless you really need them in the GUI
especially things like Lat/Lon and Row Counters.  Even if you are
planning
to extract column data, it is often faster to always send one long DO
assigning the column data to variables and then when you need the
data use EVAL.
[ can only do 1 DIM per line integration command line in the DO
statements ]

2) Build strings with all the commands you possibly can for DO
[ in development break out only one per line for debugging then cram
them together ]
example:
miStr = fetch first from MyTable +
aRow=MyTable.RowID +
aObj=MyTable.Obj +
Alter Object aObj Info Symbol, MakeSymbol(33,64,12) +
Update MyTable Set Obj=aObj Where RowID=aRow
miMap.DO (miStr)

3) Minimize the use of EVAL
Instead of showing each record # just do every 10th record
example:
.looping code
miMap.DO(Fetch Next From MyTable  aRow=MyTable.RowID)
MyCounter=MyCounter+1
If MyCounter mod 10=0 then
  CurrentRow=miMap.EVAL(aRow)
  ShowMessage(CurrentRow)
end if
end looping code


Brain dead for today...hope this helps


Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 23 January, 2002 03:49
Subject: RE: MI-L More on Integrated Mapping; Performance this time.


 David

 The short answer in my experience is that because you are sending MapInfo
 uncompiled strings in int mapping - even though its from a compiled EXE -
 its always going to be slow. Heavy or even medium duty batch work will
 always be faster in an MBX because of the clever stuff the MB compiler can
 do.

 Probably your best bet is to run parts of your int mapping app as MBXs -
you
 can use the object model still to send the MBX messages
 (Application.MBApplications collection) - as per other postings on the
list
 the MBX is identical to one you'd write if you were using DDE. The tables
 will still be available to the rest of your int mapping app. Its an extra
 compilation step and you can't 'step' the code but you could have a very
 simple MBX to do what you are outlining.

 HTH

 Paul Crisp
 Syntegra

 Direct:  0191 461 4522
 Mobile: 0776 414 3762
 Fax: (0191) 461 1959

 Innovation Place Metro Riverside Park
 Delta Bank Road Gateshead Tyne  Wear NE11 9DJ


 -Original Message-
 From: Cautley, David/PDX [mailto:[EMAIL PROTECTED]]
 Sent: 22 January 2002 19:51
 To: 'MapInfo List ([EMAIL PROTECTED])';
 '[EMAIL PROTECTED]'
 Cc: 'Collins, David'; 'Mandilag, Arnel'
 Subject: MI-L More on Integrated Mapping; Performance this time.


 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.


 I know I still owe y'all a summary on integrated mapping methods, but ...
I
 throw myself on your collective mercy.

 There's always a next hurdle, and mine is this:  we have our integrated
 mapping project well underway.  I have, however, hit a performance
roadblock
 and would like to know if anyone has either (a) experienced this and
better
 yet, (b) knows of a work-around.

 By performance problem I mean:  the same MBX is run as native in MapInfo,
 and alternately from an Integrated Mapping session (from VB 6.0).  I'm
using
 MI and MB 6.0.  The function in question is a progress bar (implied loop)
 that reads a table and inserts records into a second table based on the
 first.  In the simplest tests I do no other processing -- in fact I've run
a
 test that omits the insert so the loop just reads each record in the
source
 table.  In native MI mode, the loop takes about 50 seconds to
read/insert
 2311 records.  In the integrated mapping application, the VB selects the
 same menu item and so runs the same code in the MBX, but in this case the
 loop runs REALLY SLOWLY ... about 1 second per record... even when just
 reading (no insert).  This doesn't make sense to me -- there seems to be
 some overhead interaction between VB and MI that is really getting in the
 way.

 Some of the things I've tried are:
 * Remove a callback that I had registered to pass statusbar messages
 back to the VB -- no effect
 * Save the source table as a native table... the source is a join
 between an Access based spatial layer and a text file that specifies a
 sub-set that we want to process

Re: MI-L Finding and Deleting text and other objects from layer

2002-01-17 Thread Trey Pattillo

Hello,

copy/paste this in the MapBasic Window

Select * from  MyTable where Str$(ObjectInfo(obj,1))=1 into Arcs Browse *
from Arcs
Select * from  MyTable where Str$(ObjectInfo(obj,1))=2 into Ellipses
Browse * from Ellipses
Select * from  MyTable where Str$(ObjectInfo(obj,1))=3 into Lines Browse *
from Lines
Select * from  MyTable where Str$(ObjectInfo(obj,1))=4 into PLines Browse
* from PLines
Select * from  MyTable where Str$(ObjectInfo(obj,1))=5 into Points Browse
* from Points
Select * from  MyTable where Str$(ObjectInfo(obj,1))=6 into Frames Browse
* from Frames
Select * from  MyTable where Str$(ObjectInfo(obj,1))=7 into Regions Browse
* from Regions
Select * from  MyTable where Str$(ObjectInfo(obj,1))=5 into Rects Browse *
from Rects
Select * from  MyTable where Str$(ObjectInfo(obj,1))=9 into RndRects
Browse * from RndRects
Select * from  MyTable where Str$(ObjectInfo(obj,1))=10 into Texts Browse
* from Texts

Change MyTable to the name of your table [paste to text editor and *replace
all then paste to MBW]

You can not save each selected table type [if there are any records] with
FileSaveAs


Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N
- Original Message -
From: IPCS [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 17 January, 2002 18:47
Subject: MI-L Finding and Deleting text and other objects from layer


 G'Day Folks,

 This may be a glaringly obvious issue, but here we go...

 I have a single table and layer which contains multiple objects: Lines,
 Regions, Text and Symbols (its an imported DWG file).

 Is there anyway I can find all of the text objects, lines, regions as
groups
 and either delete them or copy them to another table?

 Each object has no data attached (so I cant use the normal query process
 based on the attached data)... I just want to find all the text only on
 the layer and remove it. Cant seem to figure it out (apart from
 painstakingly selecting each piece of text and deleting). Any help
 appreciated.

 Cheers,

 Ian Perkins,
 Sydney, Oz.



 ___
 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 Alter Table and memo fields

2002-01-11 Thread Trey Pattillo


hello,

with out getting too technical, as a programmer not that difficult to
do..

*memo fields* are often references as BLOB fields
an acronym for Binary Large OBjects

dBase, which MI is an obfuscated form of, makes use of these
along with M$ Excess and others.

Internally the field will be a unique temporary filename, possibly a
name you can recognize the disk, and most it is compeletly unrecognizable
and holds pointers and length values into a single file that
holds all the table BLOB data [if you lucky the extension might be *.BLB].

Why BLOB's came about was to get around the 254 character limit in fields,
which is based on one byte [0 to 255] hold the actual length.

But over time M$ and others have been able to use it to store
true binary data like picture formats [bmp,jpg,gif] and
now just about anything you want to put there.

Thinking about it, MI's *.MAP file, could be considered a BLOB
as each record contains a whole heap if information, the
most being for poly-line/regions, with x1/y1x#/y#, line style, color,
etc
that is linked from the data record.

So if your table has a MEMO/BLOB and you tell MI, in it's lesser
intellectual capacity, to write to that table..get the idea


Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.66532W 27.79902N
- Original Message -
From: Bill  Lorraine Donaldson [EMAIL PROTECTED]
To: Mapinfo-L [EMAIL PROTECTED]
Sent: Friday, January 11, 2002 06:29
Subject: MI-L Alter Table and memo fields





 In the MapBasic 6.5 Reference Guide (pg. 52) the Alter Table statement
makes
 the following reference to memo fields:

 If a MapBasic application issues an Alter Table statement affecting a
table
 which has memo fields, the memo fields will be lost. No warning will be
 displayed.

 What exactly are these memo fields that are mentioned?

 Thanks in advance for any enlightment that is provided!

 Bill



 ___
 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 USGS and other sites taken off line

2001-12-07 Thread Trey Pattillo


For those that might need data, etc., from the USGS, BLM, and several other
US government servers that you have not been able to get to...

According to this article on SlashDot
http://slashdot.org/article.pl?sid=01/12/07/0223216 and from there the
article at Indian Trust http://www.indiantrust.org/clips.cfm?news_id=158 a
Federal Judge ordered all servers that connect to Indian Trust removed from
the internet.

The children in DC never cease to amaze us...

Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.66532W 27.79902N



___
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 File open in MapBasic

2001-12-04 Thread Trey Pattillo


Another thought, with out the complexities of true INI [see website for
sample code], would be to create an INI file, just one line of text that is
the path for that machine.  This would facilitate needed
changes/installations without any code rewriting.  Besure to replace the
ProgramName with you MBX name.
If you need more than this then you can read each line, see what the KEY= is
and then assign the =VALUE to an assigned variable but if your going to do
this then looking into using the WinAPI would really be easier. [ IMO ]

DIM aPath AS STRING
IF FileExists(ApplicationDirectory$()+ProgramName.INI) THEN
  Open File ApplicationDirectory$()+ProgramName.INI FOR INPUT as #1
While aPath=
  Line Input #1, aPath
Wend
  Close File #1
ELSE
  aPath=FileOpenDlg(,,,Please Locate The File)
  IF aPath THEN
aPath=PathToDirectory$(aPath)
Open File ApplicationDirectory$()+ProgramName.INI FOR OUTPUT as #1
  Print #1, aPath
CLOSE FILE #1
  ELSE
NOTE TerminatingCan Not Locate File(s)
END PROGRAM
  END IF
END IF


Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.66532W 27.79902N


- Original Message -
From: Driver, Greg 9434 [EMAIL PROTECTED]
To: MapInfo-L (E-mail) [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 06:22
Subject: MI-L File open in MapBasic


 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.


 Hi Listers

 Is there a way to identify the location of a file in MapBasic without
having
 some sort of user inter-action (say using FileOpenDlg)?  The problem I
have
 is that we have some users (at remote locations) who access files on their
 C: drive, whilst others who access the same files via a server (though
even
 then the mapped drive pointing to the same server may well be different on
 different PC's).  So if I want to open a table in MapBasic that's held in
 different places what's the best way to go about it without getting the
user
 to locate it through a dialog?

 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 Re: Laptop/MapInfo query

2001-11-12 Thread Trey Pattillo


Hello,

I just my new one at the office.

Had a Dell, 2yrs old.it was OK for what it was.

This one is a WinBook J1, www.winbook.com, for several $$$ less than others
including 3yr warranty
P3-1000, 256meg, 15gig, 14 display w/Trident CyberBlade AGP [sucks at
800x600 great at 1040x768],
Via AC97 sound, 2 USB [no PS/2], 56k modem, 10/100 lan,
DVD/CD-RW and floppy [dont have to swap out like Dell], super battery,
had to settle for Win2k Pro as they no longer do NT.


Trey Pattillo
-97.665333W 27.799121N
www.wap3.com
[EMAIL PROTECTED]


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 12, 2001 13:59
Subject: MI-L: Laptop/MapInfo query


 Greetings listers:

 I will purchase a new laptop shortly and want to solicit opinions from
 laptop GISers.  RAM recommendations?  Clock speeds?  I realize the best I
 can get is the best anwer, but also suspect there are tradeoffs to be
 made, and don't know which features I need not worry too much about.  I'm
 most concerned with weight.

 I will use TargetPro, StreetPro, and MI 6.5.  I also use Illustrator,
 Photoshop, and Pagemaker and some other stuff.  Clearly I need a powerful
 laptop.  Is it possible to get something with enough juice that's also not
 too heavy?

 I appreciate any opinions on the matter.

 Regards,

 Tony D'Ambrosio
 St. James Capital
 [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.



___
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 MB Problem with Open table statement

2001-10-28 Thread Trey Pattillo

Hello,

One possibility is using Chr$(168) which *appears* as quotes, and works for
HTML, but is not DOS compatible which is used by a lot of commands and API.
Only character below 127 are DOS compatible.
You can test, display, this by holding down the ALT key and using the number
pad to input the value.

Double Quotes  = Chr$(34)
Single Quote ' = Chr$(39)

I keep a copy of AsciiCat [Win Help format]
It also has a lot of other good info in the file like unit conversions,
County Abbv  Tele-codes, paper sizes.
This is the home site and there is also HtmlCat and several other free
goodies.
http://ourworld.compuserve.com/homepages/r_harvey



Trey Pattillo
-97.665333W 27.799121N
www.wap3.com
[EMAIL PROTECTED]


- Original Message -
From: Eric Durrance [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 26, 2001 13:01
Subject: MI-L MB Problem with Open table statement


 Hi all,
  I am trying to make an MBX that will open a specific aerial image based
on
 the coordinates of a map window. The program first finds the center of the
 map window, then does a point in polygon check with a table that is the
 boundaries of the aerial images. It then attempts to open that image. I
have
 tried passing the path of the image to the open table statement a few
 different ways and each one fails. I placed a note command to make sure
 the string is built properly and it is. Any ideas of what I am missing?

 '1. This method returns an  error 22 opening table Myaerial. Unable to
open
 Myaerial

 sub WhatCenter
 close table finder interactive
 Mapx = Mapperinfo(FW, MAPPER_INFO_CENTERX)
 Mapy = Mapperinfo(FW, MAPPER_INFO_CENTERY)
 open table m:\data\aerials\AerialReference.tab hide
 create table Finder (Name char(20)) File C:\temp\finder
 Insert into Finder Values (MapInfo)
 Create Map For Finder CoordSys Earth Projection 1, 0
 open table C:\temp\finder hide
 Select * from finder where Rowid = 1 into Sel1
 update sel1 set obj = createpoint(mapx, Mapy)
 Select AerialReference.table, AerialReference.ImageName from
 AerialReference, Finder
 where aerialreference.obj contains Finder.obj into OpenIt

 Str =   Chr$(168) + Openit.table + Chr$(168)
 note Str
 Run command open table   + Str

 Add map Window MapWINID
 auto layer Aerial
 'Close table OpenIt
 'Close Table Finder
 'close table Aerialreference
 end sub

 _
 Eric M. Durrance
 Market Research Analyst
 Publix Supermarkets, Inc.
 (863)802-8862 Ext.2517
 28.0285º,-82.0505º

 The sum of intelligence in the planet is a constant.
 The population is increasing.



 ___
 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 Using MapInfo over the web (was BLANK)

2001-10-21 Thread Trey Pattillo

Hello,

My $0.0175us

#1) IANAL - I Ain't No Advise Lawyer

#2) Original Post...*if I can put this GIS in my intranet.*
NOTICE the last word *intranet* - private within the owners lan domain
Does not seem to be a type of *internet* -- public over world wide web
But sometimes the two words are used in the wrong context

Assuming this is *intranet* within the office.

MapBasic could be used but it will not be as robust as integrated solutions
build with Delphi, VB, C--, Jiva or some other language

I have set up ProViewer with specific desktop links to different *.wor to
launch, which works great for things like finding out where a specific
property/lot is located, with the wor loading needed maps and the user doing
*find*.

I also wrote an app called ProV_Designer [in Delphi] that is a bit complex
in providing the functionallity of opening maps, layers, querying, etc which
then builds the needed wor and kicks off ProViewer.

This was more of an experiment with what can be done in a wor [even sql
works] more than a distributable/functioning program.

Such as in a property tax office, having radio buttons for Acct. ID, Name
and Address and a edit box for the above information might be all that is
needed to bring back PV showing the location and a browser with all the
detailed data like the tax rate and value [everyone complains about paying
too much].

Once the exact needs of the the user are determined, the complex GUI can be
reduced to a few radio buttons, check boxes, edits and lists.
This creates a more managable user interface resulting in less training on
*how-to-do-sql*.

Of course some training on PV, zooming/info/etc will be needed but it is
better than $$ for *webware* to allow an occasional look-up by a TCI
user [technology challenged individual].

-
For every complex problem there are many answers -- one of which is clear,
simple, and wrong.

Trey Pattillo
-97.665333W 27.799121N
www.wap3.com
[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.



Re: MI-L Broken Line Segment

2001-10-19 Thread Trey Pattillo

Hello,

This will find all *multi-polyline* lines currently in the map.
Replace MyTable with the name of your map.

From MapBasic Window:

Select * from MyTable where val(str$(ObjectInfo(obj,21)))1 into work
map from work
browse * from work

You can not compare objectinfo( ) with a number, it fails, so convert to
string then to number

To find if lines are not contiguous

Do this from a copy of your table or be sure to revert after running code
Replace [Some_Street_Name] with the name of the street you want to check
From MBWin or by SQL:
Select * from MyTable where Street=[Some_Street_Name]

then use objectscombine
then select the combined street
in MBWin issue [run *all* lines each time]

dim aobj as object
aobj=selection.obj
print objectinfo(aobj,21)
undim aobj

if the number is  1 then the line has problems, although some streets start
and stop

I also have a program called FixLine that does this by putting circles
around the bad spots and then will go back and break the lines,
fixing odd/even problems,
swapping line directions with odd/even support or no data check,
splitting lines with readdressing by click or node #,
combining with lowest/highest addresses,
addressing [set the feet per address and start number],
block addressing [doing city blocks-different streets but same range],
convert pLine to line with addressing recalc,
one click to get to OptionsMove Nodes dialog,
one click to buffer dialog,
creating a Unique Identifier [into field named GUID as
sysop.d.hh h=% of 24hrs d is # days since 01 Jan 1900],
Color Picker -- then use Set Color -- helps to mark *done* work


Trey Pattillo
-97.665333W 27.799121N
www.wap3.com
[EMAIL PROTECTED]


- Original Message -
From: Morrier, Steve [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 19, 2001 14:14
Subject: MI-L Broken Line Segment


 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.


 Hi all,

 Is there a way to select line segments that have a break in them? I am
 trying to find all the lines that have a gap or break in them so that I
can
 get rid of all breaks. Thanks for your help.

 Steve

 -Original Message-
 From: Cameron Crum [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 19, 2001 12:18 PM
 To: [EMAIL PROTECTED]
 Subject: MI-L Win 2000 and MB/VB


 I have a custom MI application written in VB/MB. In Win 2000, if I
 update a table and redraw the map, all the layers don't always come back
 up. They are still in the layer control, but I ususally have to redraw 2
 or 3 times to get everything back on the screen. This doesn't happen in
 95,98, or ME. It doesn't seem to matter how many layers are on screen
 either. It does the same thing whether I have 1 or 30 layers on the map.
 Has anyone else noticed a similar problem?

 Cameron



 ___
 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.



___
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 MI VB mi.do command for creating buttonpads in MapInfo

2001-10-17 Thread Trey Pattillo

Hello,

Custom Buttons created via Integrated Mapping [VB, Delphi, Scripting
Languages,etc]
do not show up in the map.
You must do the MI/MB coding inside your application button press
Then you call the ID of the MI button from your button.

If you are wanting feed back like creating your own search tool [info
replacement]
then you must use Classes in VB or CallBacks in Delphi which your MI/MB
button
uses the *Calling OLE ClassName* that is in your code.  You then get the
mouse button up/down, lat/x, lon/y, shift key pressed and other information
you extract from the returned MI string and do further processing on.

Example of getting the StatusBar Text and SearchPoint [info] from MI using
VB Classes
www.wap3.com/download/v5CalBck.zip
Follow the _HowTo.txt file to create additional Class Definations for other
buttons

If you need a bit more help, I'll have to modify the example at the office
as I have not
reinstalled VB since the last sytem upgrade here at home.


Trey Pattillo
-97.665333W 27.799121N
www.wap3.com
[EMAIL PROTECTED]


- Original Message -
From: Thomas Brix Lyng [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 17, 2001 02:22
Subject: MI-L MI VB mi.do command for creating buttonpads in MapInfo


 Hi

 Does anyone have a working example of creating and showing buttonpads in
 MapInfo using the mi.do command.

 I have tried the various examples in the manual and in articles om MapInfo
 website and my program runs ok but nothing happens in MI.

 How do I get the VB program to start MI. And how do I use VB to create AND
 show buttonpads in MapInfo?

 Please advice.

 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.



___
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 converting degree decimal minutes to decimal degrees

2001-10-09 Thread Trey Pattillo

Hello,

Since your field is of type STRING you need to add 3 colomns of FLOAT
Call them say LATy and LONx

If your string is consistant as DDDMMmmm, then this will work
[ sounds like a dump from a GPS in this format ? ]

If you have blank values then you need to query the table for non-blank
records into a table names say Work and the change the below MyTable to Work
[select * from MyTable where sLat and sLon into Work]

1) copy the below as one line [no word wrapping from the mail] to the
MapBasic Window
2) Change MyTable to the real table name and sLat and sLon to existing
column names
and LATy and LONx to the new names created above
3) then hit enter
--Copy Start

UPDATE MyTable SET LATy=val(left$(sLat,3) +( val(
mid$(sLat,4,2)+.+right$(sLat,3) ) /60 ),  LONx=val(left$(sLon,3) +( val(
mid$(sLon,4,2)+.+right$(sLon,3) ) /60 )

---Copy End

Analysis
1) take the 2 chars [MM] at pos 4/5 [mid$(str,start,count)]
2) append the decimal +.+
3) append the right 3 chars [mmm] [right$(str,3)]
4) convert string to number [val(...)]
5) divide by 60 converting MM to .dd
6) add the value [val()] of the left 3 chars [left$(str,count)]
7) update the column [float laty or lonx] with the calculation

Trey Pattillo
-97.665333W 27.799121N
www.wap3.com
[EMAIL PROTECTED]


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 09, 2001 16:05
Subject: MI-L converting degree decimal minutes to decimal degrees


 I have a table with  Lat/Long fields that are in degree decimal minutes
(dddº
 mm.mmm) , for example (09923081) which is 99º 23.081'
 And I need to convert those lat/long fields to decimal degrees in order to
use
 the create points in MapInfo.  But the only mbx programs I can find such
as
 Dms_dec.mbx and Dmscnvrt.mbx  will only convert decimal degrees to degrees
 minute seconds or vis-versa. Anyone know of an easy way of converting
dddºmm.mmm
 to ddd.ddd automatically?

 TIA

 Dan




 ___
 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 Duplicate running of a MBX

2001-10-05 Thread Trey Pattillo


IMO-Anyone posting hacks to muck up the registry needs to really
evaluate what is happening and the outcome of doing so...even when typo's
are done by mistakenothing worse than *where was that key I changed?*

How about the thought that these machines have turned on *single click*
under
ExploderToolsFolder OptionsSetting*Single Click to open an item (point
to select)*

I'm running MI4.5 on NT4Wsp6a and did not have that problem

In searching the Registry for mapinfow --- I found E:\MI45\mapinfow.exe
%1 in

HKEY_CLASSES_ROOT\mbxfile\shell\open\command
and
HKEY_CLASSES_ROOT\tabfile\shell\open\command
and
HKEY_CLASSES_ROOT\worfile\shell\open\command
and
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mbxfile\shell\open\command
and
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\tabfile\shell\open\command
and
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\worfile\shell\open\command

and also in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App
Paths\mapinfow.exe
{default} E:\MI45\MapInfoW.exe in






Trey Pattillo
-97.665333W 27.799121N
www.wap3.com
[EMAIL PROTECTED]


- Original Message -
From: David Andrews [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 05, 2001 05:40
Subject: MI-L Duplicate running of a MBX


 Hi list,

 Does anyone else experinced this?

 If you run a mbx by double clicking the application itself from within
 explorer or as an icon on the desktop, i.e. the actual mbx file, then
 MapInfo starts up and the mbx is executed twice.

 If the mbx is run any other way, i.e from within MapInfo, or even from a
 shortcut to the mbx, etc. then the mbx only executes once.

 I have tried this with the most basic of applications, below, and it
 still does it. Anyone with any reasons why this happens?


 Declare Sub Main

 Sub Main
   note complete
 End Sub


 Regards

 Dave
























 **
 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 system manager.

 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.

 www.mimesweeper.com
 **



 ___
 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 run command and print #

2001-08-30 Thread Trey Pattillo

Hello,

You are right that file funtions can not be used in the MBWindow.

The Open filename as #FileNum is calling the WinAPIOpenFile which returns
a FileHandle is successful with MI/MB them maps to your assigned #FileNum
and
is then forever hidden from access.  The Print #FileNum has access to the
handle referenced
by #FileNum but as stated in the help file it can't be accessed by code.

Plan #A -- use WinAPI  won't work in MBWindow because DECLARE can not be
used  but fine in MB code

Plan #B -- use Run Program ProgramName [ParamA ParamB..]
and then create a small *non-visual application in your favorite language
that
can pick up the command line parameters and process them.

ProgramName = FileWrit.exe [using 8.3 as DOS application can be contructed
and work correctly]
ParamA = the file to write to [full drive/path/filename]
ParamB = flag to Append or Overwrite
ParamC? = parameters to write to the file

This can be done in Scripting, Delphi, VB, C--, or even as a DOS Batch File


Trey Pattillo
-97.665333W 27.799121N
www.wap3.com
[EMAIL PROTECTED]


- Original Message -
From: Jacques Paris [EMAIL PROTECTED]
To: MIL [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 14:16
Subject: MI-L run command and print #


 I am trying to use the run command to write to an open file the following
 way

 a=frontwindow()
 run command print #9, +a

 I get a Command unavailable: Write. Notice that  run command print
+a
  will work.

 Does the following sentence from the help file be the key to it :The rc
 statement has some restrictions, due to the fact that the command
parameter
 is interpreted at run-time, rather than being compiled.

 For me run-time is equivalent to the MapBasic Window environment (which is
 not compiled). Can I see the run command as being bound to the MBW
 environment and thus having the same restrictions? And that the handling
of
 files is impossible with run command?

 As the continuation of the previous quotation is You cannot use a rc
 statement to issue a dialog statement. Also, variable names may not
appeared
 enclosed in quotes, wouldn't you have interpreted that as all the
 restrictions we were warned about?

 I expect to learn I am right and I already hate it. Any work around?

 Jacques Paris
 e-mail  [EMAIL PROTECTED]
 MapInfo/MapBasic support  http://www.paris-pc-gis.com



 ___
 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 Code Documentation Standards

2001-08-23 Thread Trey Pattillo

IMO---
Real programmers don't use documentation.
If it was hard to write it should be even harder to make sense of it :-)


Trey Pattillo
-97.665333W 27.799121N
www.wap3.com
[EMAIL PROTECTED]


- Original Message -
From: Jones, Ioan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 23, 2001 07:51
Subject: MI-L MapBasic Code Documentation Standards


 Dear All
 I'm soon to embark on the documentation and enhancement of  someone else's
 rather  lengthy and for the most part un -commented MB code. Before I
 begin this arduous task using my tried and tested documentation style I
was
 wondering whether anyone has any advice to offer in the way of code
 documentation standards suitable for MapBasic?

 Thanks

 Ioan

 Ioan Jones
 GIS Consultant
 Fox I.T.

 Tel: +44 (0) 7775 665772
 Email: [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.


~~ Advertisement ~~~
Quick DOQQ Aerial Photos - Lower Price, Faster Delivery
LAND INFO offers full coverage of DOQQ aerial photos, priced lower and
delivered faster than the USGS and other providers.  LAND INFO also offers
feature extraction from the photography.  Visit
http://www.landinfo.com/directions.htm for complete details.
~

___
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 Delphi MapX vs. VB MapX

2001-08-05 Thread Trey Pattillo

Hello,

I will class that as a FUD statement [see below for defination], and your at
Step #2

Without showing exactly which API [ basically that is MapX ] is incompatable
and having support code examples --- *FUD on them*

Delphi [ object pascal ] has been my language of choice for *years*
Still have TurboPascal 2.0 in the closet.
Since I don't have MapX, I can't get specific but will help with what I can.
Since you don't want to *loose* Delphi subscribing/posting to
[EMAIL PROTECTED] is a help
There are not a lot of posts, like MI-L, but your not alone by using Delphi
!
I'm already beginning the transition to *nix with Delphi 6.0 and Kylix.

From a story by osOpinion http://www.osopinion.com/perl/story/12488.html
==Quote
For those who do not know the term, FUD means Fear, Uncertainty and Doubt.
It's a technique for negative marketing that was originally used by IBM in
the mainframe business. By raising spooky questions about the future of
competing products and companies, IBM could play the role of the only safe
choice and leverage its huge size and vast experience to keep corporate
customers from investigating hot new alternatives.

Ironically, FUD was perfected by Microsoft during the company's anti-OS/2
campaign of the mid-1990s and used quite effectively against IBM. Here are a
few examples of FUD at its finest.
==Unquote

Also a good [ really the whole site is worth a favorite ] is The American
Digital Revolution of 2001
http://www.osopinion.com/perl/story/12526.html


Trey Pattillo
-97.665333W 27.799121N
www.wap3.com
[EMAIL PROTECTED]


- Original Message -
From: David Skyger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 05, 2001 09:11
Subject: MI-L Delphi MapX vs. VB MapX


 Developers,

 The rumor is don't use Delphi for developing with MapX,
 is C++ or VB to prefer? Would like to stay with Delphi.

 Cheers,
 Dave

 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp



 ___
 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 Can somebody explain this

2001-08-04 Thread Trey Pattillo

Hello Stefan and others

Ed Williams has a mind boggling page with just about every kind of
navigational,
distance, bearing trig formula you will ever need
http://www.best.com/~williams/avform.htm
[this is his latest v1.31]


For more on GPS and links to all kinds of mapping/gps stuff and a humor page
http://joe.mehaffey.com/



Trey Pattillo
-97.665333W 27.799121N
www.wap3.com
[EMAIL PROTECTED]


- Original Message -
From: Stefan Majtan [EMAIL PROTECTED]
To: MapInfo [EMAIL PROTECTED]
Sent: Saturday, August 04, 2001 00:03
Subject: MI-L Can somebody explain this




 Hi all,

 I have a interest problem. I wrote the program for automatic calculation =
 of the distances and bearing of the points. I calculate the bearing by =
 this formula:=20
 atan(dx/dy) where dx =3D (x2-x1) and dy =3D (y2-y1)
 And now problem:
 My friend wants to calculate the distances and bearing of the table =
 points in lat/long WGS 84.
 Let take a two points from this table Point1(14.3622, 50.091) and =
 Point2(14.3917, 50.083)
 dx =3D 0.0295 and dy =3D -0.008
 After substitution to the formula the angle is 74.827. Due to fact of =
 second quadrant the angle is equal to 180-74.827 =3D 105. 173
 Up to this not problem. Now he was checked it by bearing.mbx utility. =
 This utility calculate bearing from the sin function as dy/distance.
 dy =3D 0.55274633283994 miles and distance is 1.4198046636099
 If you use the bearing function for calculation of the angle =
 (angle=3Dasin(dy/distance)) the result will be 22.911, after increment =
 of the 90 degrees the result angle is 112.911.
 The difference is more than 7 degrees.
 Can somebody explain this? Which result is much more appropriate?
 Thanks for all answers.
 Stefan
 =20




 ___
 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 Disabling the Close Control on a Custom Tool Bar

2001-07-24 Thread Trey Pattillo


Hello,

If you go to my website under WinAPI I have a section on the API's to
control min/max/close

I *inspect* windows using several different apps  and of course FREE

WinDowse from http://greatis.virtualave.net in the Developing section

WinSight even allows sending messages to a window
These guys are in Russia at www winsight .com  [killed hyperlink] -- DONT
TRUST THE SITE
My firewall keeps screaming about incomming connections so I attached the
original zip file I have
[I don't trust any one getting in my box [ping,icmp,etc] -- Tiny Personal
Firewall from www.tinysoftware.com]
DOWNLOAD FROM HERE: http://www.delphi32.com/vcl/4587/ at Delphi32.com


Trey Pattillo
-97.665333W 27.799121N
www.wap3.com
[EMAIL PROTECTED]


- Original Message -
From: Mike Katz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 24, 2001 10:46
Subject: MI-L Disabling the Close Control on a Custom Tool Bar


 I wish to disable the close control on a custom Tool Bar. I am aware that
 you can use the Spy++ utility to identify the ID of a control on a
 MapInfo's standard dialog boxes, and then modify it using an Alter
 MapInfoDialog statement.

 Will the same method work for a custom Tool Bar ?

 If this is possible does anyone have a standard alone copy of Spy++ or any
 similar application ?

 Thanks,

 Mike











 ___
 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 MB Multi-List-Box Handler

2001-07-23 Thread Trey Pattillo


boundary==_NextPart_001_000C_01C1139C.CD7B2470


--=_NextPart_001_000C_01C1139C.CD7B2470

Hello,

MAIL FROM OFFICE please use Home Address Below.thanks

The code below will work
The attachment has the full U.S.P.S. names + 2chr abbv
For the list I dropped most of the list --- in the commented '..

OBJECTIVES:
1) working with *static* arrays
2) use of Multi-ListBox Title using an *array* of values
3) Construct strings for use with *Run Command* inside a loop
3a)use a variable [SepChar] to control adding the separator to =
the string as it is constructed

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D

declare sub main
Declare Sub Choose_States
Declare Sub MultiListBoxHandler

Global StateArray(51) as string
Global State_ID  as integer
Global MapPath  as String
Global OpenStr  as String
Global MapStr  as String

sub main
  call Choose_States
  end program
end sub

Sub Choose_States
MapPath=3DC:\MapInfo\Data\Roads\
StateArray(1)=3DAlabama AL
StateArray(2)=3DAlaska AK
'
StateArray(9)=3DDistrict_of_Columbia DC
StateArray(10)=3DFlorida FL
'..
StateArray(30)=3DNew_Hampshire NH
'..
StateArray(51)=3DWyoming WY

'** Make Multi-List Box of 50 States
 Dialog
  Title Choose the States
  Width 160 Height 160
 Control StaticText
  Title States
  Position 28, 10
 Control MultiListBox
  Title From Variable StateArray()
  ID State_ID
  Position 30, 20
  Width 100 Height 100
 Control OKButton
  Position 35, 140
  Title OK
  Calling MultiListBoxHandler
 Control CancelButton
  Position 85, 140
  Title Cancel =20
End Sub

Sub MultiListBoxHandler
DIM Junk,SepChar AS String
 Dim intSelected, i as integer
 Dim SelectedState as string
 Dim StatetoAdd, ArraySize as smallint

 'clear the separator for the MapStr statement
 SepChar=3D =20
 MapStr=3D
 OpenStr=3D

 'get first selected value or get out=3D0
 intSelected =3D ReadControlValue(State_ID)

 Do While (intSelected  0)
Junk=3DStateArray(intSelected)
Junk=3Dleft$(Junk,LEN(Junk)-3)
   OpenStr=3DOpenStr+OPEN TABLE +Junk+\+Junk+_USHIWAY.TAB+ 
if MapStr then
 SepChar=3D,
end if
   MapStr=3DMapStr+SepChar+Junk+_USHIWAY

   'get next selected value
intSelected =3D ReadControlValue(State_ID)
 Loop

 MapStr=3DMap From +MapStr

'debugging =3D comment out when done
note OpenStr
note MapStr
'debugging

'debugging =3D remove comment when done
 ' run command OpenStr
 ' run command MapStr
'debugging
End Sub

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D

HOME MAIL:  [EMAIL PROTECTED]


Trey Pattillo
Operations  GIS
Coastal Bend 911 Network
2910 Leopard St
Corpus Christi, TX 78408
ph: 1.361.881.9911 ext. 227
pg: 1.361.270.3908 [enter ph#]
fx: 1.361.883.5749
em: [EMAIL PROTECTED]


--=_NextPart_001_000C_01C1139C.CD7B2470



___
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 re StringToDate function

2001-07-22 Thread Trey Pattillo

Hello,

if you have a string as Date=/mm/dd then for MM/DD/ use
mid$(Date,6,2)+/+right$(Date,2)+/+left$(Date,4)
for MM/DD/YY use
mid$(Date,6,2)+/+right$(Date,2)+/+mid$(Date,3,2)

if you have a MapInfo Date variable/field the use Str$(Date_Col) to get the
system short date
this converts MMDD to MM/DD/ for my system

All information system store dates either as mmddhhnnss or as
dd.hh
The first being in dBase as alot of other IS software and the second
is # or days since something Delphi uses 1/1/1900 and M$ Dos uses 1/1/1980
with the
h as the time expressed as fraction of 24 hours -- .25=6am, .5=noon,
.75=6pm

These are the only methods that will result in a properly sorted date
Otherwise for long-dates you get
April 1, April 12April 2, April 20...April 3, April 30, August., Feb
, Mar,Jul,Jun
and short-dates
01/01/1999, 01/01/2000, 01/01/2001, 01/02/1999, 01/02/2000






Trey Pattillo
-97.665333W 27.799121N
www.wap3.com
[EMAIL PROTECTED]


- Original Message -
From: Anitra Robertson [EMAIL PROTECTED]
To: Windeler, David [EMAIL PROTECTED]
Cc: 'MapInfo-L (E-mail) [EMAIL PROTECTED]
Sent: Sunday, July 22, 2001 19:32
Subject: Re: MI-L re StringToDate function




 David,

 It must have been the day for that problem. I had exactly the same problem
on
 Friday - I tried the StringToDate function plus the NumberToDate Function
etc
 etc. The only thing I did find after lots of elimination and retry (and
 uttering expletives) was that the functions would not work when there were
 other pieces of information in the label (I am assuming you ARE talking
about
 labels).

 For example, I wanted to label objects by Name and then by Date, with the
 string: ProperName(Venue_Name) + Chr$(13) + Expiry Date:  + Date (or
close to
 this). In this format, the label would work, but not give me the date in
the
 date format as it was shown in the browser. It would however, give me a
string,
 which was recognisable as a date, but not what I wanted to present to the
end
 users.

 In the end, I found a couple of dirty ways around this. One was to have
two
 seperate layers (as those without dates kept giving me an error -
argument has
 invalid type), and I changed the date format in the browser to a string
and
 then only labeled using the StringToDate on one layer, and the Name on
another
 layer. It was not the way I wanted to solve the problem, but the only way
I
 could see it would work. (I am open to anyother suggestions if you hear of
 them)

 I hope this helps.

 --
 Anitra Robertson
 GIS Analyst
 Tattersall's
 (Gaming and Lotteries)
 Melbourne, Australia


 CONFIDENTIALITY NOTE:

 This e-mail is intended only for the use of the individual or entity
 named above and may contain information that is confidential and
 privileged.  If you are not the intended recipient, you are hereby
 notified that any distribution, copying or dissemination of this
 e-mail is strictly prohibited.  If you have received this e-mail in
 error or are not the named recipient, please notify us immediately
 by return e-mail [EMAIL PROTECTED] or telephone
 613-8517-7405 and destroy the original message.  Thank you.


 Windeler, David wrote:

  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.
 
  To whom it may concern:
 
  I am trying to use the StringToDate function to convert the date I have
  stored as a string in /MM/DD format to a date. However, the function
  will not allow me to do so. I have already tried setting the date format
to
  Local but that doesn't seem to work. Does anyone know how I can
convert
  the strings to a date?
 
  David Windeler Hons. BSc. Geo, GIS Apps. Specialist
  GIS Technician
  City Of Vaughan
 
  Engineering Department
  2141 Major Mackenzie Drive
  Vaughan, Ontario
  L6A 1T1
 
  Tel. (905) 832-8525 Ext. 8747
  Fax (905) 832-6145
  E-mail [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.






 ___
 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.



  1   2   >