Re: [WebDNA] passing a variable in an include - precedence

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112522
interpreted = N
texte = 90 I really enjoyed the lesson on variable priorities, but like Ken said, this i= s not a big deal. I always set variables before calling an [include]. What you really need is better documentation to explain the variable assignm= ent priories and directions that [include somefile.inc&var=3D[var]] is incor= rect syntax.=20 It seems like a waste of resources to change this.=20 -Matthew Perosi Sent from my European iPhone On Nov 21, 2015, at 8:59 AM, Kenneth Grome wrote: >>> The main issue for discussion is that when passing a variable >>> in an include >>>=20 >>> [include file=3Dsomefile.inc&var=3Dsomevalue] >>>=20 >>> You can=E2=80=99t overwrite the var value with a text context >>> [text]=E2=80=A6[/text] within somefile.inc. >=20 >=20 > This is not a big deal. There is nothing wrong with the way it > works now. You can easily set the var value before the include > tag like I always do, then you can override it inside the include > file all you want: >=20 > [text]var=3Dsomevalue[/text] > [include somefile.inc] >=20 > And if for some reason it "bothers you" that [var] will have a > value below the include tag, just undo it like this: >=20 > [text]var=3Dsomevalue[/text] > [include somefile.inc] > [text]var=3D[raw][var][/raw][/text] >=20 > Regards, > Kenneth Grome > WebDNA Solutions > http://www.webdnasolutions.com > Web Database Systems and Linux Server Administration >=20 >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] passing a variable in an include - precedence (christophe.billiottet@webdna.us 2017)
  2. Re: [WebDNA] passing a variable in an include - precedence (christophe.billiottet@webdna.us 2017)
  3. Re: [WebDNA] passing a variable in an include - precedence (Tom Duke 2017)
  4. Re: [WebDNA] passing a variable in an include - precedence (Stuart Tremain 2017)
  5. Re: [WebDNA] passing a variable in an include - precedence (Donovan Brooke 2017)
  6. Re: [WebDNA] passing a variable in an include - precedence (Tom Duke 2017)
  7. Re: [WebDNA] passing a variable in an include - precedence (christophe.billiottet@webdna.us 2017)
  8. Re: [WebDNA] passing a variable in an include - precedence (Tom Duke 2017)
  9. Re: [WebDNA] passing a variable in an include - precedence ("Matthew A Perosi, Psi Prime" 2015)
  10. Re: [WebDNA] passing a variable in an include - precedence (Donovan Brooke 2015)
  11. Re: [WebDNA] passing a variable in an include - precedence ("Matthew A Perosi, Psi Prime" 2015)
  12. Re: [WebDNA] passing a variable in an include - precedence (Donovan Brooke 2015)
  13. Re: [WebDNA] passing a variable in an include - precedence (Matthew Perosi 2015)
  14. Re: [WebDNA] passing a variable in an include - precedence (Kenneth Grome 2015)
  15. [WebDNA] passing a variable in an include - precedence (christophe.billiottet@webdna.us 2015)
90 I really enjoyed the lesson on variable priorities, but like Ken said, this i= s not a big deal. I always set variables before calling an [include]. What you really need is better documentation to explain the variable assignm= ent priories and directions that [include somefile.inc&var=3D[var]] is incor= rect syntax.=20 It seems like a waste of resources to change this.=20 -Matthew Perosi Sent from my European iPhone On Nov 21, 2015, at 8:59 AM, Kenneth Grome wrote: >>> The main issue for discussion is that when passing a variable >>> in an include >>>=20 >>> [include file=3Dsomefile.inc&var=3Dsomevalue] >>>=20 >>> You can=E2=80=99t overwrite the var value with a text context >>> [text]=E2=80=A6[/text] within somefile.inc. >=20 >=20 > This is not a big deal. There is nothing wrong with the way it > works now. You can easily set the var value before the include > tag like I always do, then you can override it inside the include > file all you want: >=20 > [text]var=3Dsomevalue[/text] > [include somefile.inc] >=20 > And if for some reason it "bothers you" that [var] will have a > value below the include tag, just undo it like this: >=20 > [text]var=3Dsomevalue[/text] > [include somefile.inc] > [text]var=3D[raw][var][/raw][/text] >=20 > Regards, > Kenneth Grome > WebDNA Solutions > http://www.webdnasolutions.com > Web Database Systems and Linux Server Administration >=20 >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us . Matthew Perosi

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:

CyberCash not responding (2003) RE: IIS 4 (1998) FlushDatabase Suggestion (1998) Re:Help name our technology! (1997) Assign Variable Value (1998) Too many webcat comments. [WAS- Large founditems loops] (2000) WC2b15 File Corruption (1997) WebSTAR 2.1 freezes my Mac (1997) Deleting Orders (1997) Apoligy (1997) Undocumented date issues? (1998) Sorting... stumped. (2006) WebCat2: Items xx to xx shown, etc. (1997) Thanks Grant (1997) We have a client who is trying buy WebDNA (2006) WebMerchant Process Orders errors (2000) Summing a field full of numbers ... (1997) Extended [ConvertChars] (1997) [lookup] speed sales pitch (2003) Thanks and Big News!!! (1997)