> 
> On May 2, 2006, at 6:08 PM, Jonathon Bevar wrote:
> 
>> Ok I figured it out myself.
>> 
>>  // Read User/Password Code from text file
>>  Dim strin As TextInputStream
>>  Dim f As FolderItem
>>  Dim userName, userPassword1, userPassword2 as String
>>  f = GetFolderItem("PatientLog_UPC.ini")
>>  If f.exists and f <> Nil  then

Test for nil first, i.e. "If f <> Nil AND f.exists then"

Your way, if f = nil the f.exists test will raise a nilobjectexception

HTH,

Keith DeLong







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

Reply via email to