Hi guys,
another misterious situation with Lotus Notes.
I have a class called ASAConfig, I initialize it in another scriptlib using the new statement.
In my class ASAConfig I have a property which returns a configdocument ( Notesdocument ).
The code of the property is the following:
Function getConfigDocument ( strView As String, strKey As String ) As Notesdocument
On Error Goto errHandler
Dim lkpDB As NotesDatabase
Dim viwConfig As NotesView
Dim docConfig As NotesDocument
Set lkpDB = Me.LocalLookUpDB ’ (returns the config-database )
Set viwConfig = lkpDB.getView ( strView )
Set Me.docConfig = viwConfig.getDocumentByKey ( strKey )
Set getConfigDocument = docConfig
leave:
Exit Function
errHandler:
Set getConfigDocument = Nothing
Resume leave
End Function
Seems to be correct, when I try to use the function and debug it all seems to be correct, I have all the variables and objects declared and with the correct values. As soon as I leave the function my returnvalue on the other scriptlib is empty.
Can anybody give me some tips or help me ?
Thanks in advance
M. Weller