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 andafter it only returned123.What am I missing?Happy New Year Ya'll!!MoosemanI'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:
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 andafter it only returned123.What am I missing?Happy New Year Ya'll!!MoosemanI'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:
possible, WebCat2.0 and checkboxes-restated (1997)
member logins database (2003)
Bug or syntax error on my part? (1997)
[WebDNA] Passing a text variable via copyfile (2019)
AppleScript question (1997)
Founditems Add/remove graphic display problem (1999)
SiteCheck & WebCat ? (1997)
Date problems (1997)
PIXO support (1997)
So what ya working on? (or have you completed?) (2004)
WebCatalog - Mac vs Linux (2000)
[WebDNA] WebDNA Roll Call (2014)
Feature req. (2002)
shell problems again... (2003)
MATH PROBLEM (1997)
shipping costs (1997)
Never mind.... Searching blank fields problem (1999)
[OT] WebCat Programmer Wanted (NJ) (1999)
Upgrading to 4.0 (2000)
Re:Emailer Error Question (1998)