Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why is this looping (lotus Script)

Status
Not open for further replies.

NotSQL

Technical User
May 17, 2005
205
GB
Sub Click(Source As Button)

On Error Goto ErrorHandler

NumericValue:
Dim session As New NotesSession
Dim wksp As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument
Dim ntnum As Variant

Set uidoc = wksp.CurrentDocument
Set doc = uidoc.Document
ntnum = wksp.Prompt(PROMPT_OKCANCELEDIT,"Residual Value Reset","Please enter the Residual Value",Cstr(doc.AgreedBuybackValue(0)))
doc.AgreedBuybackValue = Cint(ntnum)


ErrorHandler:
Messagebox "Please Enter Numeric Value"
Goto NumericValue

End Sub
 
Search at the top (find a forum) with keyword Lotus
 
Lotus script is very much like VB script

Thanks for your response though!!!
 
Okay. It loops because
[tt]Goto NumericValue[/tt]
without it, it won't loop.
ps: It is more like vba rather than vbs. But, if you insist on "like" rather than unlike, that is not unreasonable too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top