Page 1 of 1

HostName() Bug

Posted: Sun Sep 07, 2003 4:56 pm
by akj
HostName() in the Network library appears not to work in PB 3.72 as is shown by the following code:

Code: Select all

OpenConsole()
n$=Hostname()
PrintN(Str(Len(n$)))
PrintN(n$)
Delay(5000)
CloseConsole()

Posted: Sun Sep 07, 2003 5:55 pm
by Henrik
Hi :)

Code: Select all

InitNetwork(); <<<<

OpenConsole() 
n$=Hostname() 
PrintN(Str(Len(n$))) 
PrintN(n$) 
Delay(5000) 
CloseConsole()
Best Regards
Henrik