Subject: LotusScript: Test if object property exists - how?
Feedback Type: Question
Product Area: Domino Server
Technical Area: Application development
Platform: Windows 2003 server
Release: All
Reproducible: Not applicable
Hello everyone!
I couldn't find a LotusScript forum, so I'm posting here. I have code like this:
Dim objCol As NotesDocumentCollection
Set objCol = doc.Responses
If objCol.Count>0 Then
Print "Count is > 0"
End If
...which give me a "Object variable not set" when it hit the "If objCol.Count..." statement. Is there a way to check if "Count" is set? I have checked and objCol is not null and is an object. In javascript you could say something like "if(objCol.Count) {".
Any help would be very appreciated! If there is a better forum, please let me know.
Thanks,
Alex
Feedback number WEBB8U6UNG created by Alex Aalto on 05/10/2012
Status: Open
Comments:
LotusScript: Test if object proper... (Alex Aalto 10.May.12) . . Nothing (Emily C Graham 11.May.12) . . . . Not Nothing (Alex Aalto 11.May.12) . . . . . . create a notesdocumentcollection (Phil M Jones 16.May.12)