DUPLICATE ENTRY ! Class property from another ScriptLib returning nothing as NotesDocument return value

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

Subject: DUPLICATE ENTRY !!! Class property from another ScriptLib returning nothing as NotesDocument return value

try here…http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/2f4518147fc7e4f685256d1f002dd608?OpenDocument

http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/a57e2edc8068bbe385256c2800402bfa?OpenDocument

http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/8768e0055e9761e985256bf8004f99ce?OpenDocument

Subject: Fat BINGO …

That was the problem.

Thanks a lot

You saved me dozens of sleepless nights.

M. Weller