[Migrated content. Thread originally posted on 09 December 2004]
Hi,I am trying to get an integration together with Lotus Notes
which supports Lotus Script (Very Similar to VB Script) Using the ACUGT Automation Controller - My Problem is the script Runs once
then refuses to run again until I reboot the server, Here is an example of the script.
Please anyone who can help will me much appreciaited
Sub Initialize
On Error Goto errhndlr
Dim PFUNCTION As String
Dim PCOMPANYNUMBER As String
Dim PEMPKEY1 As String
Dim PTRANSACTCODE As String
Dim PDETAIL As String
Dim PERROR As String
Dim cblobj As Variant
Dim retVal As Variant
Print "start"
PFUNCTION= "READ" PEMPKEY1 = "0002728M"
PTRANSACTCODE = "1251"
PCOMPANYNUMBER = "01"
Set cblobj = CreateObject("AcuGT.Application")
If cblobj Is Nothing Then
Print "error - no object created"
Else
Print "success - object created"
cblobj.Initialize "-c F:\\Payday\\payday.cfg" retVal = cblobj.call50("EMPRW.ACU", PFUNCTION, PCOMPANYNUMBER, PEMPKEY1, PTRANSACTCODE, PDETAIL , PERROR ) '
Print "RETURN details => " Cstr(PDETAIL)
cblobj.Cancel ("EMPRW.ACU")
cblobj.Shutdown
End If
If PERROR = "35" Then
PERROR = "Successfull"
End If
Print "PERROR is =>"&PERROR
Exit Sub
errhndlr:
Print "There was an error with the automation object =>(" Error$ ")"
Resume Next
End Sub