#56718 - 2001-06-25 01:54 PM
@IPADDRESS0
|
attiahia
Hey THIS is FUN
Registered: 2000-03-27
Posts: 268
|
When I Ping a specific PC I get the following IP Address “10.12.236.15” Which is correct. But when I use @IPADDRESS0 to read the IP Address for the same PC, I got “10. 12.236. 15”.Why I get here space after 10. And before 12? What is the way to get rid of this space? I am using the IP Address to map the target pc to nearest server, this space confuse me. thank you.
|
|
Top
|
|
|
|
#56719 - 2001-06-25 02:33 PM
Re: @IPADDRESS0
|
attiahia
Hey THIS is FUN
Registered: 2000-03-27
Posts: 268
|
Thanks, I think I found the solution which wrote by Scott Harrison.$IP = @IPADDRESS0 $IPNOSPACES = LTRIM(SUBSTR($IP,1,4))+LTRIM(SUBSTR($IP,5,4))+LTRIM(SUBSTR($IP,9,4))+LTRIM(SUBSTR($IP,13,3)) http://kixtart.org/board/Forum2/HTML/000295.html
|
|
Top
|
|
|
|
#56721 - 2001-06-26 07:42 AM
Re: @IPADDRESS0
|
attiahia
Hey THIS is FUN
Registered: 2000-03-27
Posts: 268
|
MCA. Thank you a lot for your help. I am getting 0 by implementing @ipaddressX, I might did some thing wrong. if this worked, it will be much better than using Ltrim. Pleas advice.Thank you.
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|