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:

[OT] Discussion forum, last visit, Cookie, ... (2003) [FoundItems] solved - thanks (1997) setheader and retrieve it immediatly (2001) Test (2002) Platform Switch (1997) Replace context problem ... (1997) autosensing lanague selection (1997) WebCatalog Review (2001) Can you do this??? and other stuff (1997) No Data Results (1997) Date/Time format problems (1997) Virtual Postcard almost complete... (1998) Narrowing NT Crashing error (2000) OT Weird Messenger Service message (2002) [WebDNA] Webserver does not respond occasionally (2018) For those of you not on the WebCatalog Beta... (1997) [format 40s]text[/format] doesn't work (1997) [WebDNA] 3-5 GB of native WebDNA db in RAM?, else MySQL w/WebDNA [SQL] tags, else skip WebDNA altogether? (2009) Email truncation in Eudora. (1998) Suggestions (1998)