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

This WebDNA talk-list message is from

2017


It keeps the original formatting.
numero = 113414
interpreted = N
texte = 1007 Hello Tom, there is a behavioral change: here the results of loading = test1.dna on 8.5.1 and 6.2 =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-test1.dna=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94- [include file=3Dtest2.inc&var1=3D8&var2=3D9&var3=3D23]
main file : [var1] with [var2] with [var3] =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94-=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94-=E2=80=94=E2=80=94 =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-test2.inc=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94- [text]var3=3D0634[/text] included file : [var1] with [var2] with [var3] =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94-=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94-=E2=80=94=E2=80=94=E2=80=94 on 8.5.1 we get included file : 8 with 9 with 0634=20 main file : [var1] with [var2] with 0634 on 6.2 we get included file : 8 with 9 with 23=20 main file : [var1] with [var2] with 0634 However, in test1.dna, we load a file and simultaneously pass three = variable values, and the included file overwrites one of the variables = with another value. It seems consistant to me that the result shows the = overwriting variable, and not the overwritten one. So, to me, 8.5.1 is consistant. Any opinion about this? - chris > On Feb 20, 2017, at 17:37, Tom Duke wrote: >=20 > Hi all, >=20 > Ok I have just hit an issue with variables using WebDNA 8.5.1 on = CentOS 7. >=20 > Prior to the upgrade calling this include: >=20 > [include = file=3D/common/includes/smUtility-navlist-bootstrap.inc&smNAVCLASS=3Dprima= ry-nav] >=20 > and having this in the include file: >=20 > [text secure=3DF]smNAVCLASS=3D[/text] >=20 > would result in the variable 'smNAVCLASS' being set to 'primary-nav'. >=20 > After the upgrade the variable 'smNAVCLASS' being set to '' - i.e. = blank. >=20 > So the line "[text secure=3DF]smNAVCLASS=3D[/text]" is overwriting the = passed in include variable. >=20 > Is this the intended behaviour? If so then I have a lot of code to = rewrite. >=20 > - Tom --------------------------------------------------------- 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)
1007 Hello Tom, there is a behavioral change: here the results of loading = test1.dna on 8.5.1 and 6.2 =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-test1.dna=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94- [include file=3Dtest2.inc&var1=3D8&var2=3D9&var3=3D23]
main file : [var1] with [var2] with [var3] =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94-=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94-=E2=80=94=E2=80=94 =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-test2.inc=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94- [text]var3=3D0634[/text] included file : [var1] with [var2] with [var3] =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94-=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94-=E2=80=94=E2=80=94=E2=80=94 on 8.5.1 we get included file : 8 with 9 with 0634=20 main file : [var1] with [var2] with 0634 on 6.2 we get included file : 8 with 9 with 23=20 main file : [var1] with [var2] with 0634 However, in test1.dna, we load a file and simultaneously pass three = variable values, and the included file overwrites one of the variables = with another value. It seems consistant to me that the result shows the = overwriting variable, and not the overwritten one. So, to me, 8.5.1 is consistant. Any opinion about this? - chris > On Feb 20, 2017, at 17:37, Tom Duke wrote: >=20 > Hi all, >=20 > Ok I have just hit an issue with variables using WebDNA 8.5.1 on = CentOS 7. >=20 > Prior to the upgrade calling this include: >=20 > [include = file=3D/common/includes/smUtility-navlist-bootstrap.inc&smNAVCLASS=3Dprima= ry-nav] >=20 > and having this in the include file: >=20 > [text secure=3DF]smNAVCLASS=3D[/text] >=20 > would result in the variable 'smNAVCLASS' being set to 'primary-nav'. >=20 > After the upgrade the variable 'smNAVCLASS' being set to '' - i.e. = blank. >=20 > So the line "[text secure=3DF]smNAVCLASS=3D[/text]" is overwriting the = passed in include variable. >=20 > Is this the intended behaviour? If so then I have a lot of code to = rewrite. >=20 > - Tom --------------------------------------------------------- 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 . christophe.billiottet@webdna.us

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:

notification solutions (1997) MacAuthorize order data fields WAS:How To question... (1997) OPEN MARKET PATENTS SOUND ECOMMERCE ALARM (1998) Associative lookup style? + bit more (1997) Grouping search fields, etc. (1997) [sendmail] on NT? (1997) 2.0 Info (1997) How can I record purchases to a database? (1998) Suffix Mapping (1998) Encryption of E-mail (1998) removing commas from a preformatted number (2000) Calculating multiple shipping... (1997) Removing [showif] makes a big difference in speed (1997) [BoldWords] WebCat.acgib15Mac (1997) can WC render sites out? (1997) No Wanna Duppys (1998) did I miss anything (1997) japanese characters (1997) Not really WebCat (1997) Fufillment e-mail? (1998)