Michael,
 
If your need is to get a file name MapBasic has a built in dialog for this purpose:
 
sFile = FileOpenDlg("", "", ".TXT", "Pick a file to open...")
If sFile = "" Then
    Exit Sub
End if
 
Open File sFile
    For Input
    As #345
 
'**read lines from the file
 
Close File #345
 

Peter Horsbøll Møller
GIS Developer, MTM
Geographical Information & IT
 
COWI A/S
Odensevej 95
DK-5260 Odense S.
Denmark
 
Tel     +45 6311 4900
Direct  +45 6311 4908
Mob     +45 5156 1045
Fax     +45 6311 4949
E-mail  [EMAIL PROTECTED]
http://www.cowi.dk/gis

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jenkins, Michael D.
Sent: Friday, March 17, 2006 8:08 PM
To: [email protected]
Subject: [MI-L] Using MapBasic to read user input

Using MapBasic, I  would like to write a routine that reads user input, for example a file name, and then use this information to open the appropriate file, etc.
 
 
 
_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to