Avatar of LYekelchik2007
LYekelchik2007
Flag for United States of America asked on

ExecProcedure in Lotus Script

hi ..
I am using the foolwing script
Dim session As New NotesSession
      Dim db As NotesDatabase
      Dim con As New ODBCConnection
      Dim qry As New ODBCQuery
      Dim result As New ODBCResultSet
      Dim status As Variant
      
      Dim sqlString As String      
      Dim doc As NotesDocument
      
      Dim W As New NotesUIWorkspace    
      Dim UIDoc As NotesUIDocument
      
      Set UIDoc = W.CurrentDocument
      Set doc = UIDoc.Document    
      
      sLeadID = doc.LeadID(0)
      
      Set db = session.CurrentDatabase
      Set qry.Connection = con
      Set result.Query = qry
      Call  DbConnect(con)
      
      If con.DataSourceName <> "" Then status = True
      Set result.Connection = con
      Call  result.ExecProcedure("PROC_HOPGetApplicationNextNumber","'sLeadID'")
<<<>>>

      
      TT  = result.GetValue(1)
      TT2  = result.GetValue(2)
      Messagebox TT2,, "Value of first row"
      
      con.Disconnect        


question.. ?
Can we check result after ExecProcedure
Call  result.ExecProcedure("PROC_HOPGetApplicationNextNumber","'sLeadID'")
how script will be check result ?

 
Lotus IBMScripting Languages

Avatar of undefined
Last Comment
L00M

8/22/2022 - Mon
Sjef Bosman

Maybe you need some error checking, like this:

      Dim ok As Integer
     
      ok= False
      On Error Goto errorlabel
      Call  result.ExecProcedure("PROC_HOPGetApplicationNextNumber","'sLeadID'")
      ok= True
oklabel:
      If ok Then
            .....
      End If
.
.
      Exit Sub
errorlabel:
      Resume ok ' ok is still False!


Regards,
   Sjef
LYekelchik2007

ASKER
The reason return only False for me and never True ... I am not sure , if  "Call  result.ExecProcedure" working at all ..
ASKER CERTIFIED SOLUTION
Sjef Bosman

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
marilyng

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
L00M

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup Zone:
 Split: sjef_bosman {19187577} & marilyng {19202726}

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

L00M
Experts Exchange Cleanup Volunteer
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23