Hi,
You can try this :
Dim latitude, longitude As Alias
latitude = name + ".COL2"
longitude = name + ".COL3"
Fetch First From name
Do While Not EOT(name) 'while it isn't the table end
lat = latitude
lon= longitude
Fetch Next From name
Loop
For the second problem, I think you must use the full path table to commit it like
"c:\....\name.tab"
Kind regards,
__________________________________________________
Sophie Coub�s / [EMAIL PROTECTED]
GIS Consultant
KOREM
GEObroadcasting Technologies
__________________________________________________
680, Charest East Blvd., Suite 120
Quebec (Quebec)
G1K 3J4
Tel.: (418) 647-1555
Fax: (418) 647-1666
1 888 440-1MAP
www.korem.com
__________________________________________________
* MapInfo Canadian Partner of the Year - 2001
* Best New MapInfo Partner 2000 - North America
__________________________________________________
-----Message d'origine-----
De : Kevin Slover [mailto:[EMAIL PROTECTED]]
Envoy� : Tuesday, October 15, 2002 3:06 PM
� : Directionsmag
Objet : Re: MI-L FileOpenDlg Question
Thanks to everyone that has offered there suggestion for this problem. It was fairly
simple, as I have found out. I have basically used the code:
file_name = PathToTableName$(szOpenTable)
name = file_name + "_trk.tab"
I have found that this works, for the most part. Thankfully, this is completely
internal, so I should have to worry about paths and all. The only problem I
have now at this time are two things...
I am trying to use the new table name (name) to fetch records from, using:
For nIndex = 3 to 102
Fetch Rec nIndex From "name"
lat = name.COL2
lon=name.COL3
However, it gives me the error "Unrecognized command: .. . This only happens when
these lines are read, I can comment them out and no problems. I have seen
this before, any ideas?
Also, when trying to commit table "name" it is giving me a table called name, not the
real file name that I want...to make sure I am doing it right, I put a
"note name" line, and it is the proper file. Hmm?
Thanks again for all the help!!
--
LTJG Kevin Slover, NOAA
GIS Specialist/Oceanographer
NOAA/TPC/TSB/Storm Surge Unit
11691 SW 17th Street
Miami FL 33165
W (305) 229-4456
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 3589
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 3592