krisbest86
Programmer
I want to get data from the other programme. When I run the code below I get error:
3027 Cannot Update. Datebase or object is ready-only. It occurs at the line I highlighted.
Any help would be very appreciated.
Sub MainObject()
Set System = CreateObject("EXTRA.System") ' Gets the system object
System.TimeoutValue = 500
If (System Is Nothing) Then
'
Else
Set Sessions = System.Sessions
If Not (Sessions Is Nothing) Then
' Set the default wait timeout value
g_HostSettleTime = 500 ' milliseconds
OldSystemTimeout& = System.TimeoutValue
If (g_HostSettleTime > OldSystemTimeout) Then
System.TimeoutValue = g_HostSettleTime
End If
' Get the necessary Session Object
Set Sess0 = System.ActiveSession
If (Sess0 Is Nothing) Then
MsgBox "Could not create the Session object. Stopping macro playback."
Else
If Not Sess0.Visible Then Sess0.Visible = True
[highlight #FCE94F] Sess0.Screen.WaitHostQuiet (g_HostSettleTime)[/highlight]
End If
End If
End If
End Sub
3027 Cannot Update. Datebase or object is ready-only. It occurs at the line I highlighted.
Any help would be very appreciated.
Sub MainObject()
Set System = CreateObject("EXTRA.System") ' Gets the system object
System.TimeoutValue = 500
If (System Is Nothing) Then
'
Else
Set Sessions = System.Sessions
If Not (Sessions Is Nothing) Then
' Set the default wait timeout value
g_HostSettleTime = 500 ' milliseconds
OldSystemTimeout& = System.TimeoutValue
If (g_HostSettleTime > OldSystemTimeout) Then
System.TimeoutValue = g_HostSettleTime
End If
' Get the necessary Session Object
Set Sess0 = System.ActiveSession
If (Sess0 Is Nothing) Then
MsgBox "Could not create the Session object. Stopping macro playback."
Else
If Not Sess0.Visible Then Sess0.Visible = True
[highlight #FCE94F] Sess0.Screen.WaitHostQuiet (g_HostSettleTime)[/highlight]
End If
End If
End If
End Sub