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:

WCf2 and nested tags (1997) Date search bug (1998) WebCat & WebTen (1997) PCS Frames (1997) Database (2000) Printing a final order (1997) How to add product size choices to form? (1997) Multiple prices (1997) extending webDNA (2004) CommitDatabase vs. CloseDatabase (2001) Add a field to the error log? (1997) Download capabilities (1997) Protect vs Authenicate (1997) OT: zipcodes (2002) SIMS setup (1998) Great product and great job ! (1997) The Form authentication trick (2000) showif with math? (2000) New Web Site Developers Database (1996) Enterprise Server (1998)