Das Notes Forum
Domino 9 und frühere Versionen => Entwicklung => Thema gestartet 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?
-
Und wo wird db instantiiert ??
Hast Du Option Declare gesetzt ?
Bernhard
-
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.
-
Ich sehe immer noch nicht, wo Du db deklarierst und später instantiierst.
Bernhard
-
Oh sorry my fault :)
Ja jetzt wird mir so einiges klar..., was soll ich dazu noch sagen, Augen auf. Ich habs vergessen, thx.