I'm retrieving faxes from the MS Fax Inbox and checking whether the file size of the message is < than 2 KB. If the file size is < than 2 KB then I would delete the file.
The only problem I'm coming across is that the amount of messages in the inbox has to be predefined. So for example, I would have to set the messages already to 25. So when I'm iterating through the messages in the inbox and checking the file sizes, if the messages in the inbox are < than 25 the application gives an error. If the object had a count property then I wouldn't have this problem, but doesn't seem to.
Any suggestions?
The only problem I'm coming across is that the amount of messages in the inbox has to be predefined. So for example, I would have to set the messages already to 25. So when I'm iterating through the messages in the inbox and checking the file sizes, if the messages in the inbox are < than 25 the application gives an error. If the object had a count property then I wouldn't have this problem, but doesn't seem to.
Any suggestions?