Reversing [ipaddress] normalization

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16634
interpreted = N
texte = How can I reverse the normalized [ipaddress] and put it back to the proper way of writing IP addresses?I have to automatically submit many different ip addresses to a service via WebCatalog form -- but the server I'm sending this data to does not accept normalized WebCatalog IP addresses (with leading zeros where there were none before) ...... so now I have to change them back from what WebCat does, and make them into the same form that other Internet software expects to see them in. At first I thought this would be easy using the new [convertchars] ...But I forgot that [convertchars] cannot handle more than ONE character in the from field, so I cannot find the removeable zeros by replacing .0 with .Even that would require that I also look at the first two digits to see if one or both are zeros, since they are not preceeded by a dot ... but I can handle that, as long as the OTHER extra zero's are removed properly.So ... how can I do it? Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: Reversing [ipaddress] normalization (Michael Winston 1998)
  2. Re: Reversing [ipaddress] normalization (PCS Technical Support 1998)
  3. Re: Reversing [ipaddress] normalization (Michael Winston 1998)
  4. Re: Reversing [ipaddress] normalization (PCS Technical Support 1998)
  5. Re: Reversing [ipaddress] normalization (Dave MacLeay 1998)
  6. Reversing [ipaddress] normalization (Kenneth Grome 1998)
How can I reverse the normalized [ipaddress] and put it back to the proper way of writing IP addresses?I have to automatically submit many different ip addresses to a service via WebCatalog form -- but the server I'm sending this data to does not accept normalized WebCatalog IP addresses (with leading zeros where there were none before) ...... so now I have to change them back from what WebCat does, and make them into the same form that other Internet software expects to see them in. At first I thought this would be easy using the new [convertchars] ...But I forgot that [convertchars] cannot handle more than ONE character in the from field, so I cannot find the removeable zeros by replacing .0 with .Even that would require that I also look at the first two digits to see if one or both are zeros, since they are not preceeded by a dot ... but I can handle that, as long as the OTHER extra zero's are removed properly.So ... how can I do it? Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

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:

Web Logs (1998) First postarg not taking in $Commands (1997) [WebDNA] upload image files.... (2018) off topic - dna snipets (1997) What file? (1997) 404 error -- but wc code executes... (2001) SERIAL NUMBER PROBLEM *AGAIN*!!! (1998) docs for WebCatalog2 (1997) Nested vs conditional (1997) emailer settings and control questions (1997) Pithy questions on webcommerce & siteedit (1997) a search based on ^(contains) (1998) RE: [WebDNA] Installing WebDNA on VPS (2008) More on the email templates (1997) [WebDNA] Server version 8.6 ? (2018) page redirect in webDNA (1997) [SHOWIF] (1997) Banners (1997) URL for Discussion Archive (1997) no [search] with NT (1997)