Hello,

        Well, a programmer's job is never done!
        Now, I create a table from the following code and this line is now
in the ".tab" file on line 4.

        "!edit_version 450"

        The problem is the file won't open in Mapinfo Desktop 4. I'm
creating the file on Mapinfo 5.01.
        Other tab files don't have it.

Here is the code.

dim netperfpath, covdate, fullcovname, partcovname as string
print Chr$(12)
close all
netperfpath = fileopendlg("","","tab","choose netperf table")
Open Table netperfpath as netperftab
covdate = left$(right$(pathtotablename$(netperfpath),10),6)
print covdate

Select * from netperftab where (tratio >= 0 and tratio <= 150) and (bad_avg
>= 1 and bad_avg <= 1000) into fullcov
Commit Table fullcov As "\\Goliath\bigdata\mapdata\Coverage\Full_CovRads_wk"
+ covdate + ".TAB" TYPE NATIVE Charset "WindowsLatin1"
Select * from netperftab where (tratio >=0 and tratio <= 300) and (bad_avg
>= 1 and bad_avg <= 2500) into partcov
Commit Table partcov As
"\\Goliath\bigdata\mapdata\Coverage\Partial_CovRads_wk" + covdate + ".TAB"
TYPE NATIVE Charset "WindowsLatin1"

set style pen MakePen(1, 1, 0)
set style brush MakeBrush(2, 8421504, 16777215)
select * from fullcov into selection
fullcovname = "US_Full_Coverage_" + covdate
Create Table fullcovname (ID Integer) File
"\\Goliath\bigdata\mapdata\Coverage\" + fullcovname + ".TAB"
Create Map For fullcovname CoordSys Earth Projection 1, 0
Create Object As Buffer From Selection Width 0.2 Units "mi" Resolution 8
Into Table fullcovname
Commit Table fullcovname 


set style pen MakePen(1, 1, 0)
set style brush MakeBrush(2, 12632256, 16777215)
partcovname = "US_Partial_Coverage_" + covdate
select * from partcov into Selection
Create Table partcovname (ID Integer) File
"\\Goliath\bigdata\mapdata\Coverage\" + partcovname + ".TAB"
Create Map For partcovname CoordSys Earth Projection 1, 0
Create Object As Buffer From Selection Width 0.3 Units "mi" Resolution 12
Into Table partcovname
Commit Table partcovname Interactive
Map from partcovname
Add Map Layer fullcovname

Can some figure out what this line is and how to get the file to open in
Desktop?

Thanks,
Dion Duran
Lead Programmer Analyst
GIS - Houston
Metricom, Inc.
[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]

Reply via email to