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:

Shipcost lookup? (1997) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Trouble with formula.db (1997) AuthorizeNet Declines (2005) Duplicate emails being sent - only since last night (2002) OT: Typhoon (1998) Change in Host? (1999) Netscape (1997) FEW QUESTIONS (1997) Document Contains No Data (1998) Missing custom convert.db (1998) f2 download problems (1997) WebDNA or WebCatalog4.0.2 on Redhat 7.3 System (2003) Wanted: More Math Functions (or, Can You Solve This?) (1997) Autoreturn Submit? (1997) question: webmerchant connection (1997) [protect admin] (1997) Replacing a Word (1999) [WebDNA] WebDNA / SQL / LDAP (active directory) Solved (2013) [SHOWIF AND/OR] (1997)