RE: strip .0 off off IPaddress

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22167
interpreted = N
texte = >Can you post the code you're using? Your example IP number works fine for >me with the code that I posted earlier...Here it is: [math][GetCharsstart1end3][IPAddress][GetChars][math].[math][GetCharsstart=5&end =7][IPAddress][/GetChars][math].[math][GetCharsstart=9&end=11][IPAddress][/GetCh ars][math].[math][GetCharsstart=13&end=15][IPAddress][/GetChars][/math] Moosenaround >>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) > > >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)
>Can you post the code you're using? Your example IP number works fine for >me with the code that I posted earlier...Here it is: [math][GetCharsstart1end3][ipaddress][getchars][math].[math][GetCharsstart=5&end =7][ipaddress][/GetChars][math].[math][GetCharsstart=9&end=11][ipaddress][/GetCh ars][math].[math][GetCharsstart=13&end=15][ipaddress][/GetChars][/math] Moosenaround >>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) > > >o--------------- Dave MacLeay --+ >o----------- Digital Frontier --+ >o--------------- 802.253.8612 --+ >o--- dave@digitalfrontier.com --+ 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:

Time Tracking (2003) plugin-acgi, different results (1997) Number of Feilds Passed to [append] (2000) WebCat2b13 Command Reference Doc error (1997) RE: protect tag not working (1998) WebMerchant and PCAuthorize (1998) Anyone using Verisign's Payflow Link for payment processing? (2000) looping table rows (1999) database freeze (1997) Date Range Sorting (1997) closedatabases simple question.. (2002) [WebDNA] Serial numbers and pricing for WebDNA 7.0 (2011) [date] inside orderfile (2000) Pithy questions on webcommerce & siteedit (1997) Live Webcasts (1999) New WebDNA Solutions ... (1997) Limiting user access to .tmpl files (1997) [WebDNA] Correct 301 codes (2015) WebCatalog + Linux + ODBC + Oracle ! ? (2000) Help name our technology! I found it (1997)