Function basic question
This WebDNA talk-list message is from 2006
It keeps the original formatting.
numero = 67302
interpreted = N
texte = I am interested in making use of the Function feature. I'd like to define a few tags that will be at the ready when I need them. As I understand it, a function can be like setting a text variable that's always available anywhere. Is this correct...[function name=cookie1year][format days_to_date %A, %d-%b-%Y][math]{[date]}+{00/00/0001}[/math][/format] [math time]{[time]}+{05:00:00}[showif [date %Z]=EDT]-{01:00:00}[/showif][/math] GMT[/function]....then when setting a cookie, [cookie1year] will insert the above rendered text where I need it? And it will freshly interpret the date and time tags each time?Thanks,Terry-- Terry Wilson | terry@terryfic.com | http://terryfic.comhttp://WhosComing.com - a simplified, affordable online reservation systemhttp://TightPods.com -- stylish protection for your laptop--------------------------------------------------------------------------Attitude is the only difference between ordeal and adventure.-------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I am interested in making use of the Function feature. I'd like to define a few tags that will be at the ready when I need them. As I understand it, a function can be like setting a text variable that's always available anywhere. Is this correct...[function name=cookie1year][format days_to_date %A, %d-%b-%Y][math]{[date]}+{00/00/0001}[/math][/format] [math time]{[time]}+{05:00:00}[showif [date %Z]=EDT]-{01:00:00}[/showif][/math] GMT[/function]....then when setting a cookie, [cookie1year] will insert the above rendered text where I need it? And it will freshly interpret the date and time tags each time?Thanks,Terry-- Terry Wilson | terry@terryfic.com | http://terryfic.comhttp://WhosComing.com - a simplified, affordable online reservation systemhttp://TightPods.com -- stylish protection for your laptop--------------------------------------------------------------------------Attitude is the only difference between ordeal and adventure.-------------------------------------------------------------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://webdna.smithmicro.com/
Terry Wilson
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:
Order Date (2003)
Nested vs conditional (1997)
[WebDNA] Middle Question (2015)
& in Lookups (1997)
NTbeta18 corrupted? (1997)
Adding flash banners (2008)
Running 2 two WebCatalog.acgi's (1996)
Thanks for tips, more quest (1997)
MacFinder -- a new WebDNA web site (1998)
[OT] JS Help PLEASE (2006)
RE: Displaying Location (1997)
Help name our technology! (1997)
[OT] Multihoming Windows 2003 Server (2005)
Multiple Merchant Accounts? (1997)
Include from DB (2002)
Extended [ConvertChars] (1997)
Help getting [shownext] to increment (2003)
Status of variable hierarchy changes? (2000)
[WebDNA] Searching for multiple value [search .... 1,2,3] (2015)
# fields limited? (1997)