strip .0 off off IPaddress

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 22157
interpreted = N
texte = In case anyone is interested, here's a quick hack to strip off .0 combinations from ipaddresses:[math show=f]on=1[/math][loop start=1&end=[countChars][ipaddress][/countChars]][showif [math]on[/math]=1][showif [getChars start=[index]&end=[index]][ipaddress][/getChars]=0][math show=f]on=2[/math][/showif][hideif [getChars start=[index]&end=[index]][ipaddress][/getChars]=0][math show=f]on=0[/math][/hideif][/showif][showif [url][getChars start=[index]&end=[index]][ipaddress][/getChars][/url]^[url].[/url]][math show=f]on=1[/math][/showif][hideif [math]on[/math]=2][getChars start=[index]&end=[index]][ipaddress][/getChars][/hideif][showif [math]on[/math]=2][math show=f]on=1[/math][/showif][/loop]Kinda messy, but works with WebCat2. If you are one 3, then this would be much simplier.Aloha, Olin 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)
  9. strip .0 off off IPaddress (Olin Lagon 1998)
In case anyone is interested, here's a quick hack to strip off .0 combinations from ipaddresses:[math show=f]on=1[/math][loop start=1&end=[countchars][ipaddress][/countChars]][showif [math]on[/math]=1][showif [getChars start=[index]&end=[index]][ipaddress][/getChars]=0][math show=f]on=2[/math][/showif][hideif [getChars start=[index]&end=[index]][ipaddress][/getChars]=0][math show=f]on=0[/math][/hideif][/showif][showif [url][getChars start=[index]&end=[index]][ipaddress][/getChars][/url]^[url].[/url]][math show=f]on=1[/math][/showif][hideif [math]on[/math]=2][getChars start=[index]&end=[index]][ipaddress][/getChars][/hideif][showif [math]on[/math]=2][math show=f]on=1[/math][/showif][/loop]Kinda messy, but works with WebCat2. If you are one 3, then this would be much simplier.Aloha, Olin Olin Lagon

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:

[Sum] function? (1997) What are SMSI's upgrade policies? (2003) Shopping Cart Deletion (2000) no global [username] or [password] displayed ... (1997) Maybe Off Topic -- OS X/UNIX Shell Scripts? (2003) WebCatalog for Postcards ? (1997) FormVariable (1999) I've been thinking (2002) [WebDNA] WebDNA Roll Call (2013) RAM variables (1997) [Sum] function? (1997) small job/demo setup (1999) Back to Authnet with storebuilder (2003) Template Security error (1997) Opinion Poll Please (2002) E-Commerce site for Canadian and US customers (1998) [WebDNA] WebDNA slow processing (2011) Keep away (1997) [WebDNA] JSONStore Levels (2020) [SameAsShipping] (2005)