Domino 9 und frühere Versionen > Entwicklung

Object Variable Not Set

(1/1)

stitze:
Und im Anschluss hab ich direkt noch ein Problem, ich glaub ich sollte die Programmierumgebung wieder wechseln ;), also es ist immer noch das gleiche Programm und beim Type Missmatch (siehe Artikel davor http://www.atnotes.de/index.php?topic=21256.0) funktioniert nu, aber jetzt bricht er an einer Stelle ab, die er vorher ohne zu bemängeln kompiliert hat:

   Set dbProfile = sProfile.currentDatabase
   strProfileName = "Raumplanung Administrationsform"
   Set profileDocumentCollection = db.GetProfileDocCollection( strProfileName )
   Set profileDoc = profileDocumentCollection.GetFirstDocument

bei Set profileDocumentCollection... kommt halt der Fehler Object Variable Not Set?

Im Debugger kann man auch sehen, das diese Variable nicht gesetzt ist.

Hat jemand eine idee was ich falsch gemacht habe?

koehlerbv:
Und wo wird db instantiiert ??
Hast Du Option Declare gesetzt ?

Bernhard

stitze:
   Dim sProfile As New NotesSession
   Dim dbProfile As NotesDatabase
   Dim profileDoc As NotesDocument
   Dim profileDocumentCollection As NotesDocumentCollection
   Dim strProfileName As String

Ja, Option Declare is an.

koehlerbv:
Ich sehe immer noch nicht, wo Du db deklarierst und später instantiierst.

Bernhard

stitze:
Oh sorry my fault :)

Ja jetzt wird mir so einiges klar..., was soll ich dazu noch sagen, Augen auf. Ich habs vergessen, thx.

Navigation

[0] Themen-Index

Zur normalen Ansicht wechseln