Warning: 50 [MATH] Variable Limit per page

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16433
interpreted = N
texte = Here's a caveat to everyone out there who uses [MATH] variables.When WebCat processes a template, that template can have *at most* 50 differently named [MATH] variables. After 50, it ignores any attempt to store a new variable.The test is simple. Put[MATH]A=1[/MATH]
[MATH]B=2[/MATH]
[MATH]C=3[/MATH]
. . . [MATH]AX=50[/MATH]
[MATH]AY=51[/MATH]
[MATH]AZ=52[/MATH]
etc. until have more than 50 lines. Execute the page and see what happens. AY and AZ will *not* be evaluated.50 may seem like a lot, but if you're going to write some scripts that all go on the same page (as I did for our accounting reports), those variables get eaten up pretty fast.Just to make this clear, putting [MATH]A=1[/MATH] in your template 100 times will work fine. WebCat can only store 50 *unique* variable names. If you have a lot of variables, reuse a variabel name when you're done with it!MichaelMichael Winston *By Phone!: (503)/652/8815 x341 Internet Coordinator *By e-mail!: michaelw@dhorse.com Dark Horse Comics, Inc. *By web!: http://www.dhorse.com/ Associated Messages, from the most recent to the oldest:

    
  1. Warning: 50 [MATH] Variable Limit per page (Michael Winston 1998)
Here's a caveat to everyone out there who uses [math] variables.When WebCat processes a template, that template can have *at most* 50 differently named [math] variables. After 50, it ignores any attempt to store a new variable.The test is simple. Put[math]A=1[/MATH]
[math]B=2[/MATH]
[math]C=3[/MATH]
. . . [math]AX=50[/MATH]
[math]AY=51[/MATH]
[math]AZ=52[/MATH]
etc. until have more than 50 lines. Execute the page and see what happens. AY and AZ will *not* be evaluated.50 may seem like a lot, but if you're going to write some scripts that all go on the same page (as I did for our accounting reports), those variables get eaten up pretty fast.Just to make this clear, putting [math]A=1[/MATH] in your template 100 times will work fine. WebCat can only store 50 *unique* variable names. If you have a lot of variables, reuse a variabel name when you're done with it!MichaelMichael Winston *By Phone!: (503)/652/8815 x341 Internet Coordinator *By e-mail!: michaelw@dhorse.com Dark Horse Comics, Inc. *By web!: http://www.dhorse.com/ Michael Winston

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:

How much is too much? I can never remember the answer. (2002) Sorting Various Sizes (2003) Searching multiple fields from one form field (1997) problem serving foreign languages text (1997) Need Sample Template - just purchased (1997) customer.db and forms (1999) Help needed! (1998) Formulas.db (2001) form data submission gets truncated (1997) WebCatalog NT beta 18 now available (1997) WebDNA Book? (2003) WebDNA Running Out of RAM? (2004) RE: Can a database get stomped by simultaneous access? (1997) suffix mapping, use of cache, etc. (1997) Re:listfiles-looking for slick solution (1997) Question (1997) RE: Need Help (1998) Missing Cart Information (2003) URGENT: Can't email orders - HELP #2 (1998) Fwd: Emailer & IMail List Server (1998)