Re: More to Expire
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 20734
interpreted = N
texte = Assuming your 3 fields store numbers (ie 1998, 10, 29), this should do thetrick:[Delete db=catalog.txt&leEndYeardatarq=[date %Y]&leEndMonthdatarq=[date&m]&leEndDaydatarq=[date %d]&EndYearype=num&EndMonthtype=num&EndDaytype=num]-DaveAt 4:12 PM 10/28/98, The Mooseman wrote:>Hi once again,>>Hope this finds you happy, rich and smart... ok one out three. :)>>This snip works great to expire dated entries:>[delete db=catalog.txt&ledatedata=[date]&datetype]>>I have a bit of twist now:>>I have 3 fields:>endmonth, endday, and endyear written to catalog.txt.>>I want to use the combination of the three to expire the dated>records when compared with the current [date] .>>[delete db=catalog.txt&{[endmonth]/[endday]/[endyear]}>[date]&datetype]>>Is what I came up with, but alas... no ducks.>>Can there be help, please?>>Moosemano--------------- Dave MacLeay --+o----------- Digital Frontier --+o--------------- 802.253.8612 --+o--- dave@digitalfrontier.com --+
Associated Messages, from the most recent to the oldest:
Assuming your 3 fields store numbers (ie 1998, 10, 29), this should do thetrick:[Delete db=catalog.txt&leEndYeardatarq=[date %Y]&leEndMonthdatarq=[date&m]&leEndDaydatarq=[date %d]&EndYearype=num&EndMonthtype=num&EndDaytype=num]-DaveAt 4:12 PM 10/28/98, The Mooseman wrote:>Hi once again,>>Hope this finds you happy, rich and smart... ok one out three. :)>>This snip works great to expire dated entries:>[delete db=catalog.txt&ledatedata=
[date]&datetype]>>I have a bit of twist now:>>I have 3 fields:>endmonth, endday, and endyear written to catalog.txt.>>I want to use the combination of the three to expire the dated>records when compared with the current
[date] .>>[delete db=catalog.txt&{[endmonth]/[endday]/[endyear]}>
[date]&datetype]>>Is what I came up with, but alas... no ducks.>>Can there be help, please?>>Moosemano--------------- Dave MacLeay --+o----------- Digital Frontier --+o--------------- 802.253.8612 --+o--- dave@digitalfrontier.com --+
Dave MacLeay
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:
Duplicate Cart #'s (1998)
webdelivery.html and webna (1997)
Stumpted Again (1997)
[WebDNA] help with v7 installation (2011)
Major Security Hole (1998)
Credit card processing - UK (1997)
[WebDNA] TCPConnect Problem (2010)
[WebDNA] Authentication (2009)
WebCat2b12 - nesting [tags] (1997)
[random] only for 1-100??? (1997)
New Cart No. on same page (2003)
sort problems....bug or brain fart? (1997)
Alternative to Authorize.net (2002)
Re:Signal Raised (1997)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
Webdna sends your serial number on Internet (2003)
WebCat & WebTen (1997)
2.0.1 new commands and contexts (1997)
[carts] and databases (1997)
Force a search at the default.tmpl page? (1997)