HostName() Bug

Just starting out? Need help? Post your questions and find answers here.
akj
Enthusiast
Enthusiast
Posts: 668
Joined: Mon Jun 09, 2003 10:08 pm
Location: Nottingham

HostName() Bug

Post 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()
Anthony Jordan
Henrik
Enthusiast
Enthusiast
Posts: 404
Joined: Sat Apr 26, 2003 5:08 pm
Location: Denmark

Post by Henrik »

Hi :)

Code: Select all

InitNetwork(); <<<<

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