Chostdatamanager Methods - Symantec PCANYWHERE - OLE AUTOMATION GUIDE V 12.5 Manual

Hide thumbs Also See for PCANYWHERE - OLE AUTOMATION GUIDE V 12.5:
Table of Contents

Advertisement

34
Visual Basic object definitions

CHostDataManager methods

CHostDataManager methods
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
The CHostDataManager methods provide the parameters and return values for
accessing and controlling CHostData objects.
CHostDataManager
method
CurrentDirectory()
FindFirst(Pattern)
FindFirst(Name string)
Parameter or
Description
return value
Return value =
The full path name of the current
String
pcAnywhere data directory in which
pcAnywhere host objects are stored
Parameter =
File name pattern to filter object files (an
Pattern as string
asterisk [*] finds all files in the current
directory)
Parameter =
Return buffer for the full path name of the
Name as string
host object file that matches the specified
pattern

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ole automation

Table of Contents