Domino 9 und frühere Versionen > Entwicklung

error message: Object variable not set

(1/4) > >>

Gravedigger:
Hallo,

bei folgender Zeile:
Set appldoc = applview.GetDocumentByKey(applname)

Bekomme ich im Notes-Log folgende Fehlermeldung:
Addin: Agent '(agSaveNewDoc)
 agSaveNewDoc' error message: Object variable not set

Vorher wird alles richtig initialisiert.

Woran kann so etwas liegen?

eknori:
dann ist definitiv bei den DIMs was nicht richtig; poste mal den Code bitte

p.s. oder die View ist nicht sortiert

Gravedigger:
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim mausydoc As NotesDocument
Dim appldoc As NotesDocument
Dim applview As NotesView
Dim applname As String

Dim counter As Integer
Dim applplatform As String
Dim applappl As String
Dim applrz As String

Dim appl() As String
Dim user() As String

Const sep = ";"

Dim session As New NotesSession
   
Set db = session.CurrentDatabase
Set doc = session.DocumentContext
Set mausydoc = New NotesDocument( db )
Set applview = db.GetView("viwCfgApplication")
applname = doc.fdAS400Appl(counter)
Set appldoc = applview.GetDocumentByKey(applname)

Die View ist einmal kategorisiert und dann aufsteigend sortiert.

eknori:
ok; welchen wert hat denn applName ??

.. kann es sein, daß du einen nicht initialisierten string übergibst ??

Gravedigger:
applname kann nur text sein. z. b.
Eingangsrechnung ARAL
Trabis
...

Navigation

[0] Themen-Index

[#] Nächste Seite

Zur normalen Ansicht wechseln