Re: [WebDNA] [ArrayGet] [ArraySet]
This WebDNA talk-list message is from 2014
It keeps the original formatting.
numero = 111042
interpreted = N
texte = Hi Lawrence,There are some developers that have made good use of arrays that I know of.. but I don't personally put it to use that often.In WebDNA (so far at least) the "key's" for the array are a path. This is perhaps more limiting than, say, PHP, where keys can be a string or other value types.. creating more of a map. Of course, the good news is that WebDNA is not based around arrays, like PHP ;-).. we have much more useful tools like formvariables, table, etc.. to store / retrieve / move data.However, one could make use WebDNA arrays.. perhaps especially if the key path was accessible. For example, letssay you had your meals planned out for the entire year ;-), and this info was in a 2 dimensional array called "meal".[text multi=T]mJanuary=1&mFebruary=2&mMarch=3&mApril=4.. etc.. to 12[/text][!] day is simply the number [dd] [/!]My Meal for March 20th is: [meal([mMarch],20)]I haven't personally tested the access speed of an array, but historically, the claim is that it is a faster data access than the other methods of getting to data in WebDNA. So, logically, I would say that it's benefit is in situations where there is a static data set that needs to perform well with access under load.Hope this helps,Donovan>> --- Original message ---> Subject: [WebDNA] [ArrayGet] [ArraySet]> From: Lawrence Banahan
> To: talk@webdna.us > Date: Wednesday, 22/01/2014 6:09 AM>> Hi>> I need some help to understand [ArrayGet] [ArraySet]> I never used them since now.> I went through the docs but it still looks obsure to me.> I also went through google to found some general information about it > but didn't found much help.> Could you tell me in wish case you use it, or any other informations > that would help me to understand.> Thanks> Lawrence> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us
Associated Messages, from the most recent to the oldest:
Hi Lawrence,There are some developers that have made good use of arrays that I know of.. but I don't personally put it to use that often.In WebDNA (so far at least) the "key's" for the array are a path. This is perhaps more limiting than, say, PHP, where keys can be a string or other value types.. creating more of a map. Of course, the good news is that WebDNA is not based around arrays, like PHP ;-).. we have much more useful tools like formvariables, table, etc.. to store / retrieve / move data.However, one could make use WebDNA arrays.. perhaps especially if the key path was accessible. For example, letssay you had your meals planned out for the entire year ;-), and this info was in a 2 dimensional array called "meal".[text multi=T]mJanuary=1&mFebruary=2&mMarch=3&mApril=4.. etc.. to 12[/text][!] day is simply the number [dd] [/!]My Meal for March 20th is: [meal([mMarch],20)]I haven't personally tested the access speed of an array, but historically, the claim is that it is a faster data access than the other methods of getting to data in WebDNA. So, logically, I would say that it's benefit is in situations where there is a static data set that needs to perform well with access under load.Hope this helps,Donovan>> --- Original message ---> Subject: [WebDNA] [ArrayGet] [ArraySet]> From: Lawrence Banahan > To: talk@webdna.us > Date: Wednesday, 22/01/2014 6:09 AM>> Hi>> I need some help to understand [ArrayGet] [ArraySet]> I never used them since now.> I went through the docs but it still looks obsure to me.> I also went through google to found some general information about it > but didn't found much help.> Could you tell me in wish case you use it, or any other informations > that would help me to understand.> Thanks> Lawrence> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us
Donovan Brooke
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:
OrderFile (2000)
Nested tags count question (1997)
apostrophe in search item (1997)
WebCat2 Append problem (B14Macacgi) (1997)
Nested tags count question (1997)
[WebDNA] Record click-thrus (2008)
pop up building with summarize (1998)
[format] (1998)
SiteGuard Admin Feature ? (1997)
Shopping Cart w/Multiple Databases (1998)
Webcat Hosting in London or UK (2003)
carriage returns in data (1997)
Freeze (2003)
Cleaner URLs (2003)
[ModDate] & [ModTime] ? (1997)
Creating comums (1998)
Creating folders and deleting files (1997)
I give up!! (1997)
[WebDNA] math and blank /no value (2014)
WebCat2b12 CGI Mac - [shownext] problem (1997)