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][GetChars start=5&end=7][IPAddress][/GetChars][/math].[math][GetChars start=9&end=11][IPAddress][/GetChars][/math].[math][GetChars start=13&end=15][IPAddress][/GetChars][/math]-Dave At 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, Olin o--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--------------- 802.253.8612 --+ o--- dave@digitalfrontier.com --+ Associated Messages, from the most recent to the oldest:

    
  1. RE: strip .0 off off IPaddress (Olin Lagon 1998)
  2. RE: strip .0 off off IPaddress (The Mooseman 1999)
  3. RE: strip .0 off off IPaddress (Dave MacLeay 1999)
  4. RE: strip .0 off off IPaddress (The Mooseman 1998)
  5. RE: strip .0 off off IPaddress (Dave MacLeay 1999)
  6. Re: strip .0 off off IPaddress (Kenneth Grome 1998)
  7. RE: strip .0 off off IPaddress (Olin Lagon 1998)
  8. Re: strip .0 off off IPaddress (Dave MacLeay 1998)
  9. strip .0 off off IPaddress (Olin Lagon 1998)
Another way to do the same thing:[math][GetChars start=1&end=3][ipaddress][/GetChars][/math].[math][GetChars start=5&end=7][ipaddress][/GetChars][/math].[math][GetChars start=9&end=11][ipaddress][/GetChars][/math].[math][GetChars start=13&end=15][ipaddress][/GetChars][/math]-Dave At 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, Olin o--------------- 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)