For releasing an object:

  • Every Open Client object except for a session-free AppObject has a release method.
  • The syntax is the same for all objects, as in the following example that releases the CustomerOrder object, which happens to be a ProcObject:
    ' Tell the AppServer to release the Persistent Proc
    If Not (WS_custOrder.CustomerOrderIDValue Is Nothing) Then
            WS_custOrder.Release_CustomerOrder( )
            WS_custOrder.CustomerOrderIDValue = Nothing
    End If