Das Notes Forum

Domino 9 und frühere Versionen => Entwicklung => Thema gestartet von: stitze am 16.02.05 - 11:48:42

Titel: Object Variable Not Set
Beitrag von: stitze am 16.02.05 - 11:48:42
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?
Titel: Re: Object Variable Not Set
Beitrag von: koehlerbv am 16.02.05 - 11:50:26
Und wo wird db instantiiert ??
Hast Du Option Declare gesetzt ?

Bernhard
Titel: Re: Object Variable Not Set
Beitrag von: stitze am 16.02.05 - 11:53:35
   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.
Titel: Re: Object Variable Not Set
Beitrag von: koehlerbv am 16.02.05 - 11:55:06
Ich sehe immer noch nicht, wo Du db deklarierst und später instantiierst.

Bernhard
Titel: Re: Object Variable Not Set
Beitrag von: stitze am 16.02.05 - 12:35:15
Oh sorry my fault :)

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