Thanks guys,
John pointed me in the right direction... as I waded throught the "documentation" I
completely forgot about the "help" files.
I now realise that you can connect directly to Cache using MSM-Activate and, apart
from the slower initial connection, seems to work
well.
There is some problem with the M.uci and M.volgrp properties as the connection to
Cache failed whenever these were set. This makes
it harder to use the same code to connect to both MSM & Cache, but the following seems
to work OK.
Andre - pehaps someone could tidy up the Cache server code to that it responded to the
.uci property and automatically changed to
that namespace?
Colin
The technique I used was :
'Log on and get the server version then log off & reconnect properly
On Error GoTo Login_err
M.Login
Mver = M.Xecute("W $zversion")
M.Logout
'MSM
If InStr(1, Mver, "MSM") > 0 Then
M.uci = uci
M.Volgrp = vol
M.Login
End If
'Cache
If InStr(1, Mver, "Cache") > 0 Then
M.Login
M.Xecute ("znspace " & uci)
End If
'If we are not connected then the server is an unknown version -> abort