RE: strip .0 off off IPaddress

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 22160
interpreted = N
texte = Thanks Dave. Would this map for all IPaddresses, that if there is a zero it will always be in the same location?Aloha, Olin> -----Original Message----- > From: Dave MacLeay [mailto:dave@digitalfrontier.com] > Sent: Thursday, December 31, 1998 4:52 AM > To: WebDNA-Talk@smithmicro.com > Subject: Re: strip .0 off off IPaddress > > > 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)
Thanks Dave. Would this map for all IPaddresses, that if there is a zero it will always be in the same location?Aloha, Olin> -----Original Message----- > From: Dave MacLeay [mailto:dave@digitalfrontier.com] > Sent: Thursday, December 31, 1998 4:52 AM > To: WebDNA-Talk@smithmicro.com > Subject: Re: strip .0 off off IPaddress > > > 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 --+ > > > Olin Lagon

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:

WebCat2 several catalogs? (1997) [OT][OT] OSX email client (2002) How to Display text in empty fields (1997) WebCat2: Items xx to xx shown, etc. (1997) Credit Card Number checking (1997) WebCat2b13MacPlugIn - syntax to convert date (1997) PCS Frames (1997) default value from Lookup (was Grant, please help me) (1997) Laying an egg. (1998) Authenticate Questions (2003) Protect vs Authenicate (1997) One other big addition... (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) Duplicates (1998) Digest for 4/18/97 (1997) WCS Newbie question (1997) FEA REQ: One .hdr, multiple .db's (2003) sort without the or a (1998) Examples of cross-selling with WebCatalog? (1998) Clearing cart headers (2000)