theLine = urlsv.cell(i,0) + chr(9) + urlsv.cell(i,1)
Could it be Chr(9)?
dim f as folderItem
dim i as integer
dim t as textOutputStream
dim theLine as string
f = GetSaveFolderItem ("", "URL Database")
if f <> nil then
t = f.createTextFile
f.MacType = "Text"
f.MacCreator = "UKBH"
if t <> nil then
for i = 0 to urlsv.listCount -1 //repeat with each row of the
listbox
theLine = urlsv.cell(i,0) + chr(9) + urlsv.cell(i,1)
//theLine is made up of the Name + tab character + the URL
t.writeLine theLine
next
t.close
end if
end if
On Sep 30, 2006, at 8:58 AM, Fred of Occam wrote:
1) Not quite sure why this happens. File types are handled
differently on Macs and pcs.
It does not seem to work for me either. I normally use a Mac but
have a pc notebook.
2) The square character is a nil. Somehow your program is writing
a nil to the end of the file.
Stepping through should reveal how it is happening.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>