Page 1 of 1 1
Topic Options
#174 - 1999-07-01 04:25 AM LTrim
Anonymous
Unregistered


Hello,

how come following script does not work.
Kix32 seems to crash for some reason in the comparison if LTrim function is used before.
Or is the syntax incorrect?

$test1=100.100.100
$test2=LTrim(SubStr(@IPADDRESS0,1,11))

if $test1=$test2
"same subnet"

? "end of script"


Top
#175 - 1999-07-01 04:41 AM Re: LTrim
Anonymous
Unregistered


why would you do it this way ?

the @ipaddress0 macro always gives back this : aaa.bbb.ccc.ddd
so if you compare the current IP address with a string like : 100. 10.100 and the current ip subnet is 100.10.100 the answer is TRUE !!

------------------
Lon Geefshuysen,
www.xs4all.nl/~longeef/NT/KiXtart
lon_geefshuysen@essentium.com


Top
#176 - 1999-07-01 05:24 AM Re: LTrim
Anonymous
Unregistered


Well that was an example how the
bug occurs. Also I'd prefer not
to have spaces with ip addresses.
-BR, Kimi

Top
#177 - 1999-07-12 02:23 PM Re: LTrim
Anonymous
Unregistered


You need to have the padding. check page 72 of the manual.....
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Glenn Barnas) and 1135 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.049 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org