I would recommend that you just use the Print #nFile, statement to print
directly to a file.

Start by opening the file using "Open File .. for Output .."
Now you can create string to print using you varables
And filanlly the "Close File #..." Closes the file.

Peter Horsbøll Møller
GIS Developer
Geographical Information & IT
 
COWI A/S
Rugårdsvej 55
DK-5000 Odense
Denmark
 
Tel     +45 6313 5013
Direct  +45 6313 5008
Mob     +45 5156 1045
Fax     +45 6313 5090
E-mail  [EMAIL PROTECTED]
http://www.cowi.dk


> -----Original Message-----
> From: Eagle, David A [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 17, 2003 2:41 PM
> To: [EMAIL PROTECTED]
> Subject: MI-L Export to *.TXT
> 
> 
> Hello Mappers,
> 
> On this dull and dreary Monday I would like to output some 
> data to a TXT file or similar (CSV, DBF)...
> 
> I have written some MB code to report info on a point of 
> interest. When clicked on, attribute info is passed into 
> variables and then displayed on a custom dialog. I want the 
> option to click on a button on that dialog to output this 
> data to a file that can be manipulated elsewhere.
> 
> All the values are currently held in variables other than 
> some unique values, I'd like to output them to a text file as follows:
> 
>               Unique1         Unique2
> Unique3               Var1            Var2
> Unique4               Var3            Var4
> Unique5               Var5            Var6
> 
> The TXT file would be comma separated like this:
> 
>  ,Unique1,Unique2
> Unique3,Var1,Var2
> Unique4       ,Var3,Var4
> Unique5       ,Var5,Var6
> 
> My initial thoughts are to create a temporary table which I 
> subsequently delete, into which I create new rows updated 
> with the values above. I could then probably initiate 
> Table>Export through MB code to output to TXT??
> 
> Does anyone have any thoughts or tidier solutions? Am I going 
> the long way down the garden path again?
> 
> Best Regards, David
> 
> 
> 
> This email and any attached files are confidential and 
> copyright protected. If you are not the addressee, any 
> dissemination of this communication is strictly prohibited. 
> Unless otherwise expressly agreed in writing, nothing stated 
> in this communication shall be legally binding.
> 
> 
> 
> ---------------------------------------------------------------------
> List hosting provided by Directions Magazine | 
> www.directionsmag.com | To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED]
> Message number: 9170
> 
> 

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 9171

Reply via email to