PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Valid IP address
  • Computer name in Windows Mobile
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the name of the local computer or the name of a computer whose IP address is known (reverse DNS resolution).
Versions 24 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 24
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Example
// Displays the name of local computer
Info(NetMachineName())
Syntax
<Result> = NetMachineName([<IP Address>])
<Result>: Character string
Name of current computer.
<IP Address>: Optional character string
IP address (in XXX.XXX.XXX.XXX format) of the computer whose name is requested. If this parameter is not specified, the name of the current computer is returned. This address must be a valid address.
Remarks

Valid IP address

To check whether an IP address is valid, use Ping.
Windows Mobile

Computer name in Windows Mobile

In order for NetMachineName to operate properly from a Mobile equipped with a network card, a specific configuration is required:
  • Configuration of ActiveSync: you must set "This computer is connected to: Office network".
  • Configuration of the Mobile: select "Start .. Parameters .. Connections .. Advanced .. Select networks" and choose "Office network".
Component : wd240com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Video NetMachineName
https://youtu.be/ePCYefMDZ6o
https://windevdesenvolvimento.blogspot.com/2019/08/dicas-2266-windev-webdev-mobile.html

// BTN_NetMachineName
EDT_NOME_COMPUTADOR=NetMachineName(EDT_IP_COMPUTADOR)
amarildo
31 Aug. 2019