ArcPad Scripting Object Model
HostName Property
See Also  Example  Send comments on this topic.
INet Object : HostName Property

Glossary Item Box

Description

Returns the host name of the computer.

Property type

Read-only property

Syntax

variable = object.HostName

Return Type

String

Example

Opens a URL and displays the results in a message box.
INET Example (VBScript)Copy Code
Sub OpenESRI
  Dim objNet, strURL, varData
  Set objNet = Application.CreateAppObject("INET")
  strURL = "http://www.esri.com"
  'Display the host name in a message box
  MsgBox objNet.HostName, vbOKOnly, "HostName"
  varData = objNet.OpenURL(strURL)
  'Display the data in a message box.
  MsgBox varData, vbOKOnly, strURL
  Set objNet = Nothing
End Sub

See Also

© 2013 All Rights Reserved.