62 Visual Basic object definitions
CHostDataEx object
Visual Basic sample code for host functionality
The following Visual Basic sample code retrieves a host data object and modifies
its properties:
Private Sub Command1_Click()
Dim HostDataManager as Object
Dim HostData as Object
Dim s as string
'Create CHostDataManager object
Set HostDataManager = CreateObject(WINAWSVR.BEHOSTDATAMANAGER)
'display and change current directory
s = HostDataManager.CurrentDirectory()
MsgBox ( s )
HostDataManager.ChangeDirectory ("C:\dev\bin.w32\data")
s = HostDataManager.CurrentDirectory()
MsgBox ( s )
'retrieve remote data object
Set HostData = HostDataManager.RetrieveObject("pod.BHF", 2, 0)
'display some properties
s = HostData.AreaCode()
MsgBox (s)
s = HostData.PhoneNumber()
MsgBox (s)
'set some properties
RemoteData. HostData = "212"
Bool = <CHostDataEx>.AllowDriveSecurity
Bool
Returns whether the drive security option is
enabled.
Bool = <CHostDataEx>.UseDirectoryServices
Bool
Returns whether the directory services option is
enabled.
String = <CHostDataEx>.DirectoryServiceEntry
String
Returns the directory service settings.
Table 2-67
CHostDataEx properties and return values
Property
Return
value
Description
Summary of Contents for PCANYWHERE - OLE AUTOMATION GUIDE V12.1
Page 1: ...Symantec pcAnywhere OLE Automation Guide ...
Page 6: ......
Page 18: ...18 Using OLE Automation with Symantec pcAnywhere Where to find more information ...
Page 68: ...68 Visual Basic object definitions Awrem32 functions ...
Page 108: ...108 Visual C object definitions Awrem32 functions ...
Page 112: ...112 Index ...