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:

WebCatalog for guestbook ? (1997) WebCatalog/Mac 2.1b2 - PIXO (1997) Make sure I understand this??? (1997) Grant, please help me ... (1997) Frames and WebCat (1997) Sherlock and WebCat (1998) Does not begin with.... (2003) [WebDNA] improvements (2015) Associative lookup style? + bit more (1997) GuestBook example (1997) web delivery (1997) test 3 (2003) Table Loop Hoops (2000) no global [username] or [password] displayed ... (1997) Pass a form (2003) [WebDNA] PayPal IPN (was: paypal FINALLY!!!!) (2009) [QuantityPrice] Not working in WebCatNT 2.0.1??? (1997) carriage returns in data (1997) Problems with date math (1997) Corrupted filetypes with [movefile] (1998)