Problem Creating Points

19 views
Skip to first unread message

Allan

unread,
May 23, 2013, 10:08:18 AM5/23/13
to mapi...@googlegroups.com
Here's my problem, I'm trying to convert a series of .csv files in .tab using this code:

sTable = FileOpenDlg("","","csv","Open CSV")
Register Table sTable TYPE ASCII Delimiter 44 Titles Charset "WindowsLatin1" Into sTable
Open Table sTable Interactive
Create Map For sTable CoordSys Earth Projection 1, 0
Update sTable Set Obj = CreatePoint(Longitude, Latitude)
Commit Table sTable Interactive
Map From sTable

The "sTable" is a Global variable.

typing each line of the code in the MapBasic inside the MapInfo works fine, but when I use the program I got this error:

"Expression does not evaluate to a column or table name"

What am I doing wrong?

Thanks in advance.
Reply all
Reply to author
Forward
0 new messages