Re: Shopping with Accounts

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 48314
interpreted = N
texte = Marc Kaiwi wrote:> No this is a good example> ... WebDNA always knows what context it's in.:-) WebDNA might know what context it is in... but it might not be the one that you think it is in.hmm, Whats not good about my example again? :-) Simply, If you use similarly named vars inside two contexts that use that var name, then this is illegal and your results will be unknown (thus incorrect).> May seem a little confusing at first but just always think of it as > being a local variable or local in scope.> If you need a value from somewhere outside the local scope or way > down in the nest then assign it some name or other.This is a correct statement and is exactly what I was referring to when I said that there are ways to code the above to get it to do what you want.However, there are other things Kimberly might want to consider in her naming conventions.... such as: • discerning between same names can be confusing when anylizing/changing complex code. • the possibility of having to do work arounds (like the one above)What it boils down to is a personal preference of naming conventions. I'm not going to rip on someone for using the same names as the orderfile names if it works for them. :-) Just sharing my experiences. cheers, Donovan> > > kind of interesting topic. > > > -- -Donovan Brooke -Administrator of IT / -Assc. Art Director -Creative Services -Epsen Hillmer Graphics-402.342.1169 X297 ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Shopping with Accounts (Donovan 2003)
  2. Re: Shopping with Accounts (Kimberly D. Walls 2003)
  3. Re: Shopping with Accounts (Brian Fries 2003)
  4. Re: Shopping with Accounts (marc@kaiwi.com (Marc Kaiwi) 2003)
  5. Re: Shopping with Accounts (Dan Strong 2003)
  6. Re: Shopping with Accounts (Donovan 2003)
  7. Re: Shopping with Accounts (marc@kaiwi.com (Marc Kaiwi) 2003)
  8. Re: Shopping with Accounts (Donovan 2003)
  9. Re: Shopping with Accounts (Charles Kline 2003)
  10. Re: Shopping with Accounts (marc@kaiwi.com (Marc Kaiwi) 2003)
  11. Re: Shopping with Accounts (Clint Davis 2003)
  12. Shopping with Accounts (Kimberly D. Walls 2003)
Marc Kaiwi wrote:> No this is a good example> ... WebDNA always knows what context it's in.:-) WebDNA might know what context it is in... but it might not be the one that you think it is in.hmm, Whats not good about my example again? :-) Simply, If you use similarly named vars inside two contexts that use that var name, then this is illegal and your results will be unknown (thus incorrect).> May seem a little confusing at first but just always think of it as > being a local variable or local in scope.> If you need a value from somewhere outside the local scope or way > down in the nest then assign it some name or other.This is a correct statement and is exactly what I was referring to when I said that there are ways to code the above to get it to do what you want.However, there are other things Kimberly might want to consider in her naming conventions.... such as: • discerning between same names can be confusing when anylizing/changing complex code. • the possibility of having to do work arounds (like the one above)What it boils down to is a personal preference of naming conventions. I'm not going to rip on someone for using the same names as the orderfile names if it works for them. :-) Just sharing my experiences. cheers, Donovan> > > kind of interesting topic. > > > -- -Donovan Brooke -Administrator of IT / -Assc. Art Director -Creative Services -Epsen Hillmer Graphics-402.342.1169 X297 ------------------------------------------------------------- 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://webdna.smithmicro.com/ Donovan

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:

Grep help, please ... (2003) Shownext from POST (2000) form data submission gets truncated (1997) TCP Connect (1999) variables in [addlineitem] (1998) Searching multiple Databases (1997) Multiple Passwords (1997) newbies to web, spaces in email address (1998) Shownext never shows next...still (1997) [TaxableTotal] - not working with AOL and IE (1997) &fieldsdir=ra truely random?? (2000) HomePage Caution (1997) Storing Data (2002) [username][password] not showing up! HELP! (1999) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) problems with 2 tags (1997) Electronic Delivery (1997) WebCatalog NT beta 18 problem (1997) Concealing WebCatalog in the URL (2000) [WebDNA] [listallcontexts] ??? (2016)