Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 4 and 5 Forum

Notes/Domino 4 and 5 Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext

Object variable not set
Teoh Jecelyn 17.Mar.06 03:37 AM a Web browser
Domino Designer -- LotusScript 5.0.3 Windows XP

Hi,

I get the error 'object variable not set' when i click on a button to run this code. Any advice? :

Sub Click(Source As Button)
Dim session As New NotesSession
Dim tempdb As NotesDatabase
Dim tempServerName As NotesName
Set tempdb = session.CurrentDatabase
Set tempServerName = session.CreateName(tempdb.Server)
Dim db As New notesdatabase(tempServerName.common,"Apps\WorkInstruction.nsf")

Dim ws As New notesUIworkspace
Dim view As notesview
Dim doc As notesdocument
Dim uidoc As notesUIdocument
Dim num, ans As Integer
Dim wino As String
Dim box As Long
Set uidoc = ws.CurrentDocument
Set doc=uidoc.document

wino=uidoc.fieldgettext("wicnno")
Set view=db.getview("test")
num=view.FTSearch(wino,1)

If (num =0) Then
box& = MB_OK + MB_ICONSTOP + MB_APPLMODAL
ans% = Messagebox ("THIS WI IS NOT AVAILABLE IN RECORD", box&, "SEARCH RESULT")
If (ans = 1) Then
Call uidoc.fieldsettext("wicnno","")
Call uidoc.gotofield("wicnno")
Call uidoc.fieldsettext("process","")
Call uidoc.fieldsettext("wi","")
Call uidoc.fieldsettext("title","")

End If

Else
Set doc=view.getdocumentbykey(wino,True)
Call uidoc.fieldsettext("wi",doc.wi(0))
Call uidoc.fieldsettext("title",doc.title(0))
Call uidoc.fieldsettext("area",doc.area(0))
Call uidoc.fieldsettext("process",doc.process(0))

End If
End Sub




Object variable not set (Teoh Jecelyn 17.Mar.06)
. . RE: Object variable not set (Axel Matthies 17.Mar.06)
. . . . RE: Object variable not set (Teoh Jecelyn 17.Mar.06)
. . . . . . RE: Object variable not set (Axel Matthies 17.Mar.06)
. . . . . . . . RE: Object variable not set (Teoh Jecelyn 19.Mar.06)
. . . . . . . . . . RE: Object variable not set (Axel Matthies 20.Mar.06)
. . . . . . . . RE: Object variable not set (Teoh Jecelyn 19.Mar.06)
. . . . RE: Object variable not set (Teoh Jecelyn 17.Mar.06)
. . . . . . RE: Object variable not set (Teoh Jecelyn 23.Mar.06)
. . . . . . . . RE: Object variable not set (Axel Matthies 24.Mar.06)






  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

  Lotus Support
Lotus Support
Product support pages index
Search knowledge base (Technotes)
Search support downloads
Lotus Support RSS

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow