Page 1 of 1

ToIP(GetHostName()) - could be a bug ?

Posted: Fri Sep 15, 2017 8:57 am
by peceha
Hello,
during some experiments :D I found out that:

Code: Select all

ip=ToIP(GetHostName())
DebugPrint(ip)
prints IP address

and:

Code: Select all

DebugPrint(ToIP(GetHostName()))
prints IP address + some more info (table details)

Is it a bug?

Re: ToIP(GetHostName()) - could be a bug ?

Posted: Mon Sep 18, 2017 4:50 pm
by airsoftsoftwair
It's not a bug but rather an undocumented feature. ToIP() and ToHostName() both return a table with some additional infos in the second return value. I don't remember if this was deliberately kept undocumented or not so I'll just leave it as it is right now...