Scope of variables in multi include files

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 30466
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?Thanks Charles------------------------------------------------------------- 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?Thanks Charles------------------------------------------------------------- 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 Charles Kline

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:

bug in [SendMail] (1997) error: Too many nested [xxx] contexts (1997) RE: OK, here goes... (1997) WC2b12: Yes, Formulas.db is for real (1997) Summing fields (1997) HELP WITH DATES (1997) suffix mapping, use of cache, etc. (1997) URGENT: WebCatalog 2.0 (1998) Separate SSL Server (1997) New WebDNA Solutions ... (1997) HELP! Search finding too much! (1998) Date problems (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) WC1.6 to WC2 date formatting -FIXED! (1997) taxTotal, grandTotal (1997) Emailer help....! (1997) WebCat2 several catalogs? (1997) Generating Report Totals (1997) Random Command (1997) Smith Micro - no competition (2000)