Das Notes Forum

Domino 9 und frühere Versionen => ND8: Entwicklung => Thema gestartet von: Hedwig14 am 27.03.12 - 16:46:52

Titel: Incorrect argument type: string expected
Beitrag von: Hedwig14 am 27.03.12 - 16:46:52
Hallo !
bei dem u.a. Code erhalte ich an der "roten" Stelle folgende Fehlermeldung:

Incorrect argument type: string expected

Der Schalter mit dem Code befindet sich in einer eingebetteten Ansicht. Kann mir jemand helfen ?


Sub Click(Source As Button)
   Dim ws As New NotesUIWorkspace
   Dim s As New NotesSession
   Dim db As NotesDatabase
   Dim view, view2 As NotesView
   Dim collection As NotesDocumentCollection
   Dim doc As NotesDocument
   Dim anzDoks As Double
   
   Set db = S.CurrentDatabase
   Set collection = db.UnprocessedDocuments            ' ausgewähle Dokumente
   Set doc = collection.GetFirstDocument()
   
   'nur ein Dokument zur Zeit abschließen !
   If collection.Count > 1 Then
      Msgbox "Es kann nur eine Auflage zur Zeit abgeschlossen werden !"   ,, db.Title
      Exit Sub
   End If
   
'Dialog
   varReturn = ws.DialogBox ("(UFO_Auflagen_abschließen)", True, True, False, False, False, False, dbTitel , doc)
If varReturn = False Then
      Exit Sub 'wenn keine Auswahl
   End If
Titel: Re: Incorrect argument type: string expected
Beitrag von: ascabg am 27.03.12 - 16:51:06
Hallo,

Welche rote Stelle?


Andreas
Titel: Re: Incorrect argument type: string expected
Beitrag von: Hedwig14 am 27.03.12 - 16:54:22
sorry habe ich nachgeholt...
Titel: Re: Incorrect argument type: string expected
Beitrag von: ascabg am 27.03.12 - 16:56:13
Wahrscheinlich deshalb.

Zitat
varReturn = ws.DialogBox ("(UFO_Auflagen_abschließen)", True, True, False, False, False, False, dbTitel , doc)
Soll eventuell db.Title lauten.


Andreas
Titel: Re: Incorrect argument type: string expected
Beitrag von: Hedwig14 am 27.03.12 - 16:58:49
ja, Prost-Mahlzeit ! Fielmann ruft !

Danke !!!!
Titel: Re: Incorrect argument type: string expected
Beitrag von: Tode am 27.03.12 - 17:00:12
OPTION DECLARE !!!!
Titel: Re: Incorrect argument type: string expected
Beitrag von: ascabg am 27.03.12 - 17:02:29
@Tode
Warum? Es gibt doch das Forum.   ;D

Nein. Spass beiseite.
Natuerlich hilft Option Declare in derartigen Situationen immens weiter.


Andreas