Re: Don't know if this is a sily question...

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50759
interpreted = N
texte = As a related comment, using WebDNA 5 I find myself more often using [function]s where I used to use [include]s to handle recurring tasks. The formal use of parameters, the local scope variables, and the ability to define functions within the page itself as well as in a shared include file are compelling features.As a simple example:[function name=MyLink] [return][lookup db=....&value=[thevalue]&returnfield=title]
[/return] [/function][search ...] [founditems] [MyLink thevalue=[whatever]] [/founditems] [/search]- brianOn Thursday, May 29, 2003, at 07:57 AM, Alex McCombie wrote:> On 5/29/03 10:30 AM, Alan White wrote: > > Yes this will work, however conceptually unless there is some > compelling > reason to use an include for a simple lookup I would consider > modifying it. > > Perhaps you would want have the often used search context completely > within > an include. > > If you need to really get into reusing small includes, you could > consider > top level include file that sets text variables. You could then easily > use > those variables to modify the lookup code. This would actually increase > functionality without the overhead of so many File I/O calls to access > include files from the hard drive. > > Just a thought. > Alex > > >> Can I just clarify an example, If I was to have the following logic >> would it >> work? >> >> [search etc etc] >> >> [founditems] >> [include containing >> other >> lookup] >> [/founditems] >> >> [/search] >> >> [search] >> [include containing other lookup] >> [/search] >> >> Thanks >> Alan > > Alex J McCombie New World Media > Chief Information Officer Box 124 > 888/892.6379 MartVille, NY 13111 > Alex@NewWorldMedia.com http://OurClients.com > > Interface Designer WebDNA Programmer Database Designer > > > > ------------------------------------------------------------- > 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/ > ------------------------------------------------------------- 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:

    
  1. Re: Don't know if this is a sily question... (Phillip Bonesteele 2003)
  2. Re: Don't know if this is a sily question... (Kenneth Grome 2003)
  3. Re: Don't know if this is a sily question... (Brian Fries 2003)
  4. Re: Don't know if this is a sily question... (Kenneth Grome 2003)
  5. Re: Don't know if this is a sily question... (Kenneth Grome 2003)
  6. Re: Don't know if this is a sily question... (Brian Fries 2003)
  7. Re: Don't know if this is a sily question... (devaulw@onebox.com 2003)
  8. Re: Don't know if this is a sily question... (Kenneth Grome 2003)
  9. Re: Don't know if this is a sily question... (John Peacock 2003)
  10. Re: Don't know if this is a sily question... (Brian Fries 2003)
  11. Re: Don't know if this is a sily question... (Alex McCombie 2003)
  12. Re: Don't know if this is a sily question... (John Peacock 2003)
  13. Re: Don't know if this is a sily question... (Alex McCombie 2003)
  14. Re: Don't know if this is a sily question... (Bob Minor 2003)
  15. Re: Don't know if this is a sily question... (Alan White 2003)
  16. Re: Don't know if this is a sily question... (Alan White 2003)
  17. Re: Don't know if this is a sily question... (Alex McCombie 2003)
  18. Re: Don't know if this is a sily question... (John Peacock 2003)
  19. Re: Don't know if this is a sily question... (Alan White 2003)
As a related comment, using WebDNA 5 I find myself more often using
[function]s where I used to use [include]s to handle recurring tasks. The formal use of parameters, the local scope variables, and the ability to define functions within the page itself as well as in a shared include file are compelling features.As a simple example:[function name=MyLink] [return][lookup db=....&value=[thevalue]&returnfield=title]
[/return] [/function][search ...] [founditems] [MyLink thevalue=[whatever]] [/founditems] [/search]- brianOn Thursday, May 29, 2003, at 07:57 AM, Alex McCombie wrote:> On 5/29/03 10:30 AM, Alan White wrote: > > Yes this will work, however conceptually unless there is some > compelling > reason to use an include for a simple lookup I would consider > modifying it. > > Perhaps you would want have the often used search context completely > within > an include. > > If you need to really get into reusing small includes, you could > consider > top level include file that sets text variables. You could then easily > use > those variables to modify the lookup code. This would actually increase > functionality without the overhead of so many File I/O calls to access > include files from the hard drive. > > Just a thought. > Alex > > >> Can I just clarify an example, If I was to have the following logic >> would it >> work? >> >> [search etc etc] >> >> [founditems] >> [include containing >> other >> lookup] >> [/founditems] >> >> [/search] >> >> [search] >> [include containing other lookup] >> [/search] >> >> Thanks >> Alan > > Alex J McCombie New World Media > Chief Information Officer Box 124 > 888/892.6379 MartVille, NY 13111 > Alex@NewWorldMedia.com http://OurClients.com > > Interface Designer WebDNA Programmer Database Designer > > > > ------------------------------------------------------------- > 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/ > ------------------------------------------------------------- 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/ Brian Fries

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:

WebCatalog2 for NT Beta Request (1997) List of WebDNA users (2002) Frames and WebCat (1997) Allow-Deny: Solved with [Getchars] (1998) RE: MacFinder -- a new WebDNA web site (1998) WebCat2b15MacPlugin - showing [math] (1997) Multiple Ad databases? (1997) b12 cannot limit records returned and more. (1997) User Authentication (2003) [WebDNA] Ubuntu 16.04 LTS & WebDNA (2017) Special delete ... (1997) Text limits in NT version? (1997) emailer (1997) Flash Stores (2003) searchable list archive (1997) ShoppingCart Woes (1998) Add a field to the error log? (1997) Secure Server (1997) Clickable maps and WebCatalog? (1996) Mac Vs WindowsNT (1997)