Create a remote object. Set the connection type to TCP/IP and the computer name
"Host1," and then launch it as follows:
Private Sub Command6_Click()
Dim RemoteDataManager as Object
Dim RemoteData as Object
Dim s as string
Set RemoteDataManager =
CreateObject("WINAWSVR.REMOTEDATAMANAGER")
MsgBox (RemoteDataManager.CurrentDirectory())
RemoteDataManager.ChangeDirectory ("C:\dev\bin.w32\data")
MsgBox (RemoteDataManager.CurrentDirectory())
Set RemoteData = RemoteDataManager.CreateObject("test")
RemoteData.ConnectionType = "TCP/IP"
RemoteData.ComputerName = "Host1"
s = RemoteData.ConnectionType
MsgBox (s)
s = RemoteData.ComputerName
MsgBox (s)
RemoteData.WriteObject (0)
End Sub
CHostDataManager methods
The CHostDataManager methods provide the parameters and return values for
accessing and controlling CHostData objects.
Description
Parameter or
return value
CHostDataManager
method
The full path name of the current
pcAnywhere data directory in which
pcAnywhere host objects are stored
Return value =
String
CurrentDirectory()
File name pattern to filter object files (an
asterisk [*] finds all files in the current
directory)
Parameter =
Pattern as string
FindFirst(Pattern)
Return buffer for the full path name of the
host object file that matches the specified
pattern
Parameter =
Name as string
FindFirst(Name string)
Visual Basic object definitions
CHostDataManager methods
34