Re: strip .0 off off IPaddress
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 22158
interpreted = N
texte = Another way to do the same thing:[math][GetChars start=1&end=3][IPAddress][/GetChars][/math].[math][GetCharsstart=5&end=7][IPAddress][/GetChars][/math].[math][GetCharsstart=9&end=11][IPAddress][/GetChars][/math].[math][GetCharsstart=13&end=15][IPAddress][/GetChars][/math]-DaveAt 1:33 AM 12/31/98, Olin Lagon wrote:>In case anyone is interested, here's a quick hack to strip off .0>combinations from ipaddresses:>>[math show=f]on=1[/math][loop>start=1&end=[countChars][ipaddress][/countChars]][showif>[math]on[/math]=1][showif [getChars>start=[index]&end=[index]][ipaddress][/getChars]=0][math>show=f]on=2[/math][/showif][hideif [getChars>start=[index]&end=[index]][ipaddress][/getChars]=0][math>show=f]on=0[/math][/hideif][/showif][showif [url][getChars>start=[index]&end=[index]][ipaddress][/getChars][/url]^[url].[/url]][math>show=f]on=1[/math][/showif][hideif [math]on[/math]=2][getChars>start=[index]&end=[index]][ipaddress][/getChars][/hideif][showif>[math]on[/math]=2][math show=f]on=1[/math][/showif][/loop]>>Kinda messy, but works with WebCat2. If you are one 3, then this would be>much simplier.>>Aloha, Olino--------------- Dave MacLeay --+o----------- Digital Frontier --+o--------------- 802.253.8612 --+o--- dave@digitalfrontier.com --+
Associated Messages, from the most recent to the oldest:
Another way to do the same thing:
[math][GetChars start=1&end=3]
[ipaddress][/GetChars][/math].
[math][GetCharsstart=5&end=7]
[ipaddress][/GetChars][/math].
[math][GetCharsstart=9&end=11]
[ipaddress][/GetChars][/math].
[math][GetCharsstart=13&end=15]
[ipaddress][/GetChars][/math]-DaveAt 1:33 AM 12/31/98, Olin Lagon wrote:>In case anyone is interested, here's a quick hack to strip off .0>combinations from ipaddresses:>>[math show=f]on=1[/math][loop>start=1&end=
[countchars][ipaddress][/countChars]][showif>
[math]on[/math]=1][showif [getChars>start=[index]&end=[index]]
[ipaddress][/getChars]=0][math>show=f]on=2[/math][/showif][hideif [getChars>start=[index]&end=[index]]
[ipaddress][/getChars]=0][math>show=f]on=0[/math][/hideif][/showif][showif
[url][getChars>start=[index]&end=[index]]
[ipaddress][/getChars][/url]^
[url].[/url]][math>show=f]on=1[/math][/showif][hideif
[math]on[/math]=2][getChars>start=[index]&end=[index]]
[ipaddress][/getChars][/hideif][showif>
[math]on[/math]=2][math show=f]on=1[/math][/showif][/loop]>>Kinda messy, but works with WebCat2. If you are one 3, then this would be>much simplier.>>Aloha, Olino--------------- Dave MacLeay --+o----------- Digital Frontier --+o--------------- 802.253.8612 --+o--- dave@digitalfrontier.com --+
Dave MacLeay
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
WebDNA Windows 5.0 sendmail bug (2003)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
Loops and [index] (1998)
Problems with webcat 2.01 for NT (1997)
[WebDNA] Does not understand 'search' command? (2014)
[WebDNA] WebDNA slow processing (2011)
Comments Convertion (1998)
zip code vs tax rate database request (2002)
Webcatalog error, Plug-in for Webstar (1996)
Re:2nd WebCatalog2 Feature Request (1996)
Looking for WebCat hosting (2000)
Linux [decrypt] bug exists only on webcat 3 or also 4? (2000)
WebCat2b12--[searchstring] bug (1997)
[tcp connect]-dumb question? (1998)
oops private message leaked into talk list (1997)
Exclamation point (1997)
Unexpected error (1997)
Location of Webcat site in folder hierarchy (1997)
Limit on nested [ShowIf]'s? (1997)
replace using &append=T (2007)