>I am using the 'Export File' MapBasic command to create a text file.
>
>Export l_table Into "locdata.txt" Type "ASCII" OverWrite
>
>I have 3 fields, first of which is a character field storing data in the 
>format "99999.9.9" (e.g. 34551.1.0) - and the >other 2 fields are floats. 
>When I use the above command, it displays the 1st field between quotes 
>(like >"34551.1.0") and then the other 2 fields, all are tab-delimited.
>BUT, I need to drop the quotes from the 1st field!!! This text file is 
>used as an input to another tool, and this file >format is standard format 
>(cannot interchange the fields) and that tool doesnt accept records which 
>do not begin >with a digit!! Please help!


You want to print your own file. Loop through your file like this...

' ---- Sample Code ----
include "MapBasic.DEF"

Dim x, i_rows as integer

Open File "C:\temp\locdata.txt" For Output As #1

i_rows = TableInfo(l_table,TAB_INFO_NROWS)

For x = 1 to i_rows
        Fetch Rec x From l_table
        Print #1, l_table.COL1 + Chr$(9) + 
Format$(l_table.COL2,"#.###########") + Chr$(9) + 
Format$(l_table.COL3,"#.###########")
Next

Close File #1

Note "Done!"

' ---- End ----


If you don't use the Format$ command, MapInfo likes to truncate your float 
to 4 decimal places (Why?).



Steve Wallace
GIS & Market Information Manager
Florida Farm Bureau Insurance Companies

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