Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 55
Product
FileUp
Version
2.x
Title
IsEmpty property of FileUp object not a true VB Boolean
Problem
If the IsEmpty property of the FileUp object is true, the value will be 1, rather than the expected -1 or True. This is a problem since in Visual Basic or VBScript, all values other than -1 are considered to be False.

Solution
Test to see whether the IsEmpty property is equal to 1 rather than whether it is True. For instance, you would use:

If upl.IsEmpty = 1
instead of
If upl.IsEmpty
or
If upl.IsEmpty = True
Note: Some of the samples which ship with FileUp may need to be modified to reflect this issue.
Created : 1/15/2003 12:00:00 AM (last modified : 1/23/2003 9:20:41 PM)
Rate this article!
Comments