Re: variables in or out of includes

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39247
interpreted = N
texte = On Wednesday, October 10, 2001, at 05:28 PM, Andrew Simpson wrote:> I believe in webcat code - that there is only one point of execution - > unlike asp for example where you can write traditional functions > and sub > routines - but i might be wrong - still new at this. > > an include file isn't a function outside the scope of the caller. > > it is a piece of code that is physically insert into the text at > the point > of the include statement. > > what confused me however was whether or not its was interpreted then > inserted or the other way around. > > if the file is scanned for all include files then interpreted then all > variables declared in an include would be available to the parent > document > below the include statement. > > if however the files are interpreted seperately then the results > collated, > the variables would be outside the scope of the caller. > > I think it may be the first one - (just a hunch) > Correct. Variables set within an include will persist in the container below the include.Mike ------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: variables in or out of includes (Michael Davis 2001)
  2. Re: variables in or out of includes (Michael Davis 2001)
  3. Re: variables in or out of includes (Andrew Simpson 2001)
  4. Re: variables in or out of includes (Brian Fries 2001)
  5. Re: variables in or out of includes (John Peacock 2001)
  6. Re: variables in or out of includes (Alain Russell 2001)
  7. Re: variables in or out of includes (Michael Davis 2001)
  8. variables in or out of includes (Andrew Simpson 2001)
On Wednesday, October 10, 2001, at 05:28 PM, Andrew Simpson wrote:> I believe in webcat code - that there is only one point of execution - > unlike asp for example where you can write traditional functions > and sub > routines - but i might be wrong - still new at this. > > an include file isn't a function outside the scope of the caller. > > it is a piece of code that is physically insert into the text at > the point > of the include statement. > > what confused me however was whether or not its was interpreted then > inserted or the other way around. > > if the file is scanned for all include files then interpreted then all > variables declared in an include would be available to the parent > document > below the include statement. > > if however the files are interpreted seperately then the results > collated, > the variables would be outside the scope of the caller. > > I think it may be the first one - (just a hunch) > Correct. Variables set within an include will persist in the container below the include.Mike ------------------------------------------------------------- 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://search.smithmicro.com/ Michael Davis

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:

accented chars. Please help me! (1998) Sorting by date (1997) [ShowIf] and empty fields (1997) [WebDNA] How to code a 301 redirect (2008) [defined]ish (1997) File Upload (1997) Can't find templaes (1997) Sorting by date (1997) shoppingcart reload qty (1997) Any 4.5 to 5.0 upgrade gotchas? (2003) Deleting Orders (1998) Is it IE6 hating rediercts? (2004) totals (1997) Games (1998) Protect vs Authenicate (1997) Alpha List for Catagory (1998) Running _every_ page through WebCat ? (1997) Re:listfiles-looking for slick solution (1997) Re:multiple digests, please stop (1997) Requiring that certain fields be completed (1997)