RE: strip .0 off off IPaddress

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 22165
interpreted = N
texte = Ok,I used this string as if it were the context [ipaddress] and it only returned the first number.The ip was 123.045.678.981 and after it only returned 123.What am I missing?Happy New Year Ya'll!!Mooseman 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) 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)
Ok,I used this string as if it were the context [ipaddress] and it only returned the first number.The ip was 123.045.678.981 and after it only returned 123.What am I missing?Happy New Year Ya'll!!Mooseman 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) The Mooseman

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:

WebCommerce: Folder organization ? (1997) Simple way to create unique SKU (1997) Specifying the URL where a user should go (2000) passing search criteria (1997) changing creator codes (2000) setting cookies with [setcookie] (1998) quantity minimum problem (1997) Sorting error (1997) Need host (1998) XML Parse with XML WebDNA Syntax... (2004) WebCatalog Plug-in for Webstar. (1997) Tool of Use to Unix WebCat Admins (2000) simple answer? [hideif] (1997) encrypt (2000) Re:Version 2.0 and 1.6 simultaneous (1997) Location of Webcat site in folder hierarchy (1997) Emailer (WebCat2) (1997) WCS Newbie question (1997) Windows and Webcat! (2000) New Mac Public Beta Available (1997)