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 = 90I 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.=20It seems like a waste of resources to change this.=20-Matthew PerosiSent from my European iPhoneOn 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 tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: support@webdna.us.
Associated Messages, from the most recent to the oldest:
90I 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.=20It seems like a waste of resources to change this.=20-Matthew PerosiSent from my European iPhoneOn 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 tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug 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)