09-22-2008 10:53 AM
Hello,
I am using the TCP open function to check if an IP or hostname is online. I do this with an input array specifying the IP/hostname as well as the port. This doesn't seem to work as expected. After using highlight execution I noticed that the port on index 1 gets to the tcp open function after the IP/hostway on index 0 so the tcp open function seems to execute without a port and returns an error. If I set the port as a constant it works fine. Anyone have any ideas how I could fix this? Thank you in advance.
09-22-2008 11:08 AM - edited 09-22-2008 11:12 AM
After some more testing I think I am wrong on the assumption that the values are getting there at different times. I think the problem is that the port is a text string and needs to be numeric instead. Is there a way to make index 1 on the array numeric while leaving the hostname a string?
On edit: after figuring out why this wasn't working I was able to fix this problem by using the decimal string to number function. Thanks to anyone that reviewed this.