Re: Scope of variables in multi include files

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 30482
interpreted = N
texte = >What is the scope of a text variable set in an include. For example >if I set some variables based on a search in an include like so: > >[!] Include1.inc [/!] > >[search db=/databases/dealer.db&eqdelaeriddatarq=dealerid] >[founditems] >[text show=f]emailadr=[dealeremail][/text] >[text show=f]fname=[dealercontactfirst][/text] >[text show=f]lname=[dealercontactlast][/text] >[/founditems] >[/search] > >[!] End Include1.inc [/!] > >Then right after this include I have another include which does a >very similar thing... > >[!] Include2.inc [/!] > >[search db=/databases/theusers.db&equseriddatarq=[userid]] >[founditems] >[text show=f]emailadr=[useremail][/text] >[text show=f]fname=[contactfirst][/text] >[text show=f]lname=[contactlast][/text] >[/founditems] >[/search] > >[!] End Include2.inc [/!] > >Will the values for the variables set in include1.inc be used in >include2.inc or will they have the value set in include2.inc? > >What will they be after the includes? Well, you already wrote the webdna code, so what's the point of asking on this list? Couldn't you just put the above code into a .tpl file and figured this out for yourself? -- ================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- 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 Associated Messages, from the most recent to the oldest:

    
  1. Re: Scope of variables in multi include files (Anup setty 2000)
  2. Re: Scope of variables in multi include files (WebDNA Support 2000)
  3. Re: Scope of variables in multi include files (Kenneth Grome 2000)
  4. Re: Scope of variables in multi include files (Charles Kline 2000)
  5. Re: Scope of variables in multi include files (Kenneth Grome 2000)
  6. Scope of variables in multi include files (Charles Kline 2000)
>What is the scope of a text variable set in an include. For example >if I set some variables based on a search in an include like so: > >[!] Include1.inc [/!] > >[search db=/databases/dealer.db&eqdelaeriddatarq=dealerid] >[founditems] >[text show=f]emailadr=[dealeremail][/text] >[text show=f]fname=[dealercontactfirst][/text] >[text show=f]lname=[dealercontactlast][/text] >[/founditems] >[/search] > >[!] End Include1.inc [/!] > >Then right after this include I have another include which does a >very similar thing... > >[!] Include2.inc [/!] > >[search db=/databases/theusers.db&equseriddatarq=[userid]] >[founditems] >[text show=f]emailadr=[useremail][/text] >[text show=f]fname=[contactfirst][/text] >[text show=f]lname=[contactlast][/text] >[/founditems] >[/search] > >[!] End Include2.inc [/!] > >Will the values for the variables set in include1.inc be used in >include2.inc or will they have the value set in include2.inc? > >What will they be after the includes? Well, you already wrote the webdna code, so what's the point of asking on this list? Couldn't you just put the above code into a .tpl file and figured this out for yourself? -- ================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- 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 Kenneth Grome

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:

NEW INFO: I'm stuck: Can't open order file. Ignoring [OrderFile] context (2000) WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997) Header info in content (1998) emailer (1998) Serving .wml pages to WAP via webcat (2000) ShowNext - HELP! (2000) international time (1997) Newbie questions (1999) WebCatalog/Mac 2.1b2 New Features (1997) Bug Report, maybe (1997) OT: WebObjects (2000) Simple counter - how? (1997) WebCatalog for guestbook ? (1997) Encrypting WebDNA Templates and eligible files (1999) [WebDNA] Version 7 Config problem (2011) Setting up WebCatalog with Retail Pro data (1996) converting characters in form (1997) MacAuthorize order data fields WAS:How To question... (1997) emailer settings and control questions (1997) Who is hosting? (2006)