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:

Close-to Comparison Code (1998) Applescript, WebDNA, and PDF (1997) supressing math results (1997) Where's Cart Created ? (1997) Rumpus/Typhoon modules included in Typhoon ... (1997) webcat and OS 8 (1997) Blog Aggregator (2006) Help! WebCat2 bug (1997) More DateMath problems (1997) A little syntax help (1997) WebCat for Unix?? (1997) Nitro plugin? (1998) Searching blank fields problem (1999) do you have a webcatalog tool you want to sell? (1999) Loss in form (1998) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) notification solutions (1997) sort problems....bug or brain fart? (1997) Search Engine bots (2002) WebMerchant 1.6 and https (1997)