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.