Some of those lines you want to add will cause problems
On Sunday, March 30, 2003, at 04:30 PM, Eric Hoaglin wrote:
a. Read a text file
----------------
// Open the text file in an EditField
//
Dim f As FolderItem
// Ask the user to choose a text file
f = GetOpenFolderItem("application/text")
If f = Nil Then
f.close//So you don't get an error later
This WILL generate a NilObjectException because F IS nil
Do not insert this line
Return
End If
// Ask the user to choose a destination text file
f = GetSaveFolderItem("application/text","Default.html")
If f = Nil Then
f.close//same here
This WILL generate a NilObjectException because F IS nil
Do not insert this line
Return
End If
Norman Palardy
Director Of Software Development Zymeta Corporation
npalardy at zymetacorp dot com www.zymeta.com
---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>
Unsubscribe:
<mailto:realbasic-nug-off at lists dot realsoftware dot com>
Subscribe to the digest:
<mailto:realbasic-nug-digest at lists dot realsoftware dot com>
.
|