RE: strip .0 off off IPaddress

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22166
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... At 4:53 PM 12/31/98, The Mooseman wrote: >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) 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... At 4:53 PM 12/31/98, The Mooseman wrote: >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) 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:

WebCatalog for guestbook ? (1997) Fax Broadcast (1998) No. of items in shopping cart (2000) [WriteFile] problems (1997) Modulo function? (2000) Photo Album (2000) Uh...can someone help me out with the b10? (1997) PCS Emailer's role ? (1997) [WebDNA] anyone have a good tcpconnect post snippet? (2009) 4.0.x find (2000) Missing Cart Information (2003) Re[2]: Weird [blank] interpretation (1999) OT - SMSI complaint (2001) relational db question (2002) 6.1 Patch - Form Data Back Button Issue (2006) International Orders (1998) [WebDNA] Sending 100 mails an hour then pausing (2010) Execute Applescript (1997) Need some Java Script Code (2003) Make sure I understand this??? (1997)