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 .0combinations from ipaddresses:[math show=f]on=1[/math][loopstart=1&end=[countChars][ipaddress][/countChars]][showif[math]on[/math]=1][showif [getCharsstart=[index]&end=[index]][ipaddress][/getChars]=0][mathshow=f]on=2[/math][/showif][hideif [getCharsstart=[index]&end=[index]][ipaddress][/getChars]=0][mathshow=f]on=0[/math][/hideif][/showif][showif [url][getCharsstart=[index]&end=[index]][ipaddress][/getChars][/url]^[url].[/url]][mathshow=f]on=1[/math][/showif][hideif [math]on[/math]=2][getCharsstart=[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 bemuch simplier.Aloha, Olin
Associated Messages, from the most recent to the oldest:
In case anyone is interested, here's a quick hack to strip off .0combinations from ipaddresses:[math show=f]on=1[/math][loopstart=1&end=
[countchars][ipaddress][/countChars]][showif
[math]on[/math]=1][showif [getCharsstart=[index]&end=[index]]
[ipaddress][/getChars]=0][mathshow=f]on=2[/math][/showif][hideif [getCharsstart=[index]&end=[index]]
[ipaddress][/getChars]=0][mathshow=f]on=0[/math][/hideif][/showif][showif
[url][getCharsstart=[index]&end=[index]]
[ipaddress][/getChars][/url]^
[url].[/url]][mathshow=f]on=1[/math][/showif][hideif
[math]on[/math]=2][getCharsstart=[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 bemuch 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)