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:

New to WebCat, Help. (1998) How To question on setting up downloads (1997) Help Please WebDNA 6 Secure Forms Problem (2004) Multiple catalog databases and showcart (1997) WCS Newbie question (1997) Emailer errors (1997) WebDNA on RHEL4 (2007) docs for WebCatalog2 (1997) http upload (2001) Double Spacing in Mails from Sendmail (2002) apparent variable variable display? (2000) WebCat2 beta 11 - new prefs ... (1997) Nav. 4 probs with cart - Serious problem (1997) [WebDNA] Hard-coded db write delay when running certain code? (2011) db Translation (2002) Shopping carts and reloading pages (1997) Heads up, cookies *may* be outlawed in Europe (2001) Random question (1998) RE: [sendmail]- bcc? (1998) Protect and Serve (1999)