I'm stumped on a very simple issue on a form script. I have a form script that declares a IWSIDOCollection variable and assigns the primary IDO Collection to it as its value. I have some business logic that I want to apply that is basically if IWSIDOCollection.GetNumEntries() > 0 then do stuff.
The issue I'm running into is that GetNumEntries() is showing a count of 2 when there aren't any records in the collection at all. I've seen this before, but I don't remember what I did to fix.
This is throwing off iteration counts as well. i.e., For i = 0 To oCache.GetNumEntries() - 1.
What am I missing?