Willkommen
Gast
. Bitte
einloggen
oder
registrieren
.
22.05.12 - 11:50:50
News:
Schnellsuche:
Das Notes Forum
Domino 5 und frühere Versionen
Entwicklung
(Moderatoren:
Axel
,
Don Pasquale
,
eknori
,
Hoshee
,
ata
,
Thomas Schulte
,
koehlerbv
)
object variable not set
« vorheriges
nächstes »
Seiten:
[
1
]
Autor
Thema: object variable not set (Gelesen 165 mal)
my head
Aktives Mitglied
Offline
Geschlecht:
Beiträge: 226
object variable not set
«
am:
29.10.03 - 08:10:35 »
hab folgenden code:
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
Call uidoc.Refresh
wie kann ich abfragen, ob uidoc was beinhaltet?
z.b. if uidoc is not null then...
Gespeichert
Semeaphoros
Gold Platin u.s.w. member:)
Offline
Geschlecht:
Beiträge: 8152
ho semeaphoros - agr.: der Notesträger
Re:object variable not set
«
Antworten #1 am:
29.10.03 - 08:24:00 »
if not (uidoc is nothing) then .....
«
Letzte Änderung: 29.10.03 - 08:26:34 von Semeaphoros
»
Gespeichert
Jens-B. Augustiny
Beratung und Unterstützung für Notes und Domino Infrastruktur und Anwendungen
Homepage:
http://www.ligonet.ch
IBM Certified Advanced Application Developer - Lotus Notes and Domino 7 und 6
IBM Certified Advanced System Administrator - Lotus Notes and Domino 7 und 6
Glombi
Global Moderator
Gold Platin u.s.w. member:)
Offline
Geschlecht:
Beiträge: 8401
Re:object variable not set
«
Antworten #2 am:
29.10.03 - 08:25:21 »
Hi,
es kommt drauf an, von wo Du den Code aufrufst. Wenn Du das an irgendeiner Stelle in der Maske machst, ist uidoc immer gesetzt.
Die Anfrage, ob ein Objekt da ist, geht mit "is Nothing", z.B.
If uidoc Is Nothing Then
Msgbox "Nothing"
End If
Das Refresh macht jedich nur im Editmode Sinn, daher bei solchen Dingen den Modus abfragen:
if uidoc.EditMode then
call uidoc.Refresh
end if
Insgesamt also:
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
if not (uidoc is nothing) then
if uidoc.EditMode then
Call uidoc.Refresh
end if
end if
Andreas
«
Letzte Änderung: 29.10.03 - 08:26:24 von Glombi
»
Gespeichert
IBM Certified Application Developer - Lotus Notes and Domino 8
Glombitza Informations-Systeme ist nun Teamstudio Bronze Partner!
Ihr interessiert Euch für Teamstudio Produkte, Spam-Lösungen, Antiviren-Lösungen oder Lotus Notes Lizenzen? Dann einfach Mail oder PM an mich!
Seiten:
[
1
]
« vorheriges
nächstes »
Gehe zu:
Bitte wählen Sie ein Ziel:
-----------------------------
ATNOTES TEAM
-----------------------------
=> Neuigkeiten - Wichtiges
===> Archiv
-----------------------------
Lotus Notes / Domino 8
-----------------------------
=> ND8: Administration & Userprobleme
=> ND8: Entwicklung
=> ND8: Entwicklung - XPages
-----------------------------
Lotus Notes / Domino 7
-----------------------------
=> ND7: Administration & Userprobleme
=> ND7: Entwicklung
-----------------------------
Lotus Notes / Domino 6
-----------------------------
=> ND6: Administration & Userprobleme
=> ND6: Entwicklung
-----------------------------
Domino 5 und frühere Versionen
-----------------------------
=> Administration & Userprobleme
=> Entwicklung
-----------------------------
Lotus Notes / Domino Sonstiges
-----------------------------
=> Tipps und Tricks
=> Tools & Downloads
=> Projekt Bereich
===> Help-Desk Applikation !!Help!!
=> Java und .NET mit Notes/Domino
=> Companion Products
=> OLE/COM-Programmierung
=> Aus- und Weiterbildung
-----------------------------
Best Practices
-----------------------------
=> At Notes Best Practices
=> Diskussionen zu Best Practices
-----------------------------
Sonstiges
-----------------------------
=> Offtopic
=> Kritik & Vorschläge
=> Infrastruktur
=> Job Suche/Angebote
1 Stunde
1 Tag
1 Woche
1 Monat
Immer
Einloggen mit Benutzername, Passwort und Sitzungslänge
Powered by SMF 1.1.16
|
SMF © 2006, Simple Machines
Impressum Atnotes.de -
Powered by Syslords Solutions -
Datenschutz
| Partner:
Tinte / Toner günstig