Re: IP Address
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 36741
interpreted = N
texte = >Just a quick question...>>in the [ipaddress] variable. Can you have it display the actual IP, without>the extra zeros? (001.003.001.003)Yes, use getchars to grab each of the four 3-digit sections, then wrap each section in a math context. Whenever a number is placed in a math context, it gets rid of the extraneous leading zeros if there are any. Try this:[math][getchars start=1&end=3][ipaddress][/getchars][/math].[math][getchars start=5&end=7][ipaddress][/getchars][/math].[math][getchars start=9&end=11][ipaddress][/getchars][/math].[math][getchars start=3&end=16][ipaddress][/getchars][/math]=================================================Kenneth Grome WebDNA Consultanttelephone number: 011 63 32 486-9077telephone number: 011 63 919 749-0060business web site: http://webdna.netpersonal web site: http://kengrome.com=================================================-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>Just a quick question...>>in the [ipaddress] variable. Can you have it display the actual IP, without>the extra zeros? (001.003.001.003)Yes, use getchars to grab each of the four 3-digit sections, then wrap each section in a math context. Whenever a number is placed in a math context, it gets rid of the extraneous leading zeros if there are any. Try this:[math][getchars start=1&end=3][ipaddress][/getchars][/math].[math][getchars start=5&end=7][ipaddress][/getchars][/math].[math][getchars start=9&end=11][ipaddress][/getchars][/math].[math][getchars start=3&end=16][ipaddress][/getchars][/math]=================================================Kenneth Grome WebDNA Consultanttelephone number: 011 63 32 486-9077telephone number: 011 63 919 749-0060business web site: http://webdna.netpersonal web site: http://kengrome.com=================================================-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
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:
More Applescript (1997)
banner ad redirection page (1999)
Webcat run amuk (2002)
expired beta (1997)
Appending Record Prob (2001)
webmerchant/ Mac Auth. and CC refunds (1998)
40,000+ items = mutiple dbs? (1999)
Lost Records in Database (2001)
Credit Card Number Stripping Digit (1997)
Ampersand (1997)
PCS Frames-Default page is solution! (1997)
OFF TOPIC: help wanted (1997)
Formatting ModDate (2000)
sort without the or a (1998)
WC2f3 (1997)
possible to oscillate between a [redirect] and [authenticate] every other login attempt? (2000)
emailer (1997)
Setting up shop (1997)
WebCatalog f2 Installation (1997)
HELP WITH DATES (1997)