RE: strip .0 off off IPaddress

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22164
interpreted = N
texte = I'm not sure exactly what you are asking, but this technique should work for all addresses. Basicly what it does is grab each 3-digit chunk with [GetChars], and then [math] converts that string into a number, which has the effect of removing any extraneous leading zeros. It won't remove any zeros that are significant (i.e. non-leading) At 3:31 PM 12/31/98, Olin Lagon wrote: >Thanks Dave. Would this map for all IPaddresses, that if there is a zero it >will always be in the same location? >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)
I'm not sure exactly what you are asking, but this technique should work for all addresses. Basicly what it does is grab each 3-digit chunk with [getchars], and then [math] converts that string into a number, which has the effect of removing any extraneous leading zeros. It won't remove any zeros that are significant (i.e. non-leading) At 3:31 PM 12/31/98, Olin Lagon wrote: >Thanks Dave. Would this map for all IPaddresses, that if there is a zero it >will always be in the same location? >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:

Custom WebCat Prefs ... (1997) UPS (2003) NetCloak, FireSite and PIXO (2000) Exclamation point (1997) PLEASE REMOVE MY EMAIL ADDRESS (1997) Moment of Thanks (1997) Thanks ! (1997) Image maps/Webcat (1997) Country & Ship-to address & other fields ? (1997) WC2b15 File Corruption (1997) Upgrading old WebCat Database Files (1997) Problem with updating 2.1b7 -> 2.1.1 (1998) headers (2000) WebCatalog2 Feature Feedback (1996) Ok here is a question? (1997) Cannot calculate prices (1997) Adding To items to cart at once (1999) Calculating Shipping (1997) [isfile] ? (1997) SSL and reg web* (1997)