Re: presetting variables ...
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 26083
interpreted = N
texte = Thanks guys!(and also for not getting thrown off by my forgetting to change the subject line.)-JohnKenneth Grome wrote:> >Ken (and others using Ken's technique of presetting variables with [text multi=T]var1=&var2=&etc...[/text],> >> >I discovered today that if I preset varibales as I mention above at the top of my template (using [text]), and then later down I try to reset their values with a [math] context, and then later try to grab> >their value by just using [varname], then what I get is a value of nothing (what I set with the [text]), even if the [math] should have changed the value. Can anyone verify this behaviour? If right,> >then this may be a situation when one would not want to use the technique?>> I think the problem here is that you're setting text variables to blank instead of setting math variables to zero. Blank is not a valid math value, math values have to be numeric -- not blank.>> Thus, when you try to reset the blank text variable with a math context, it does not work properly, because the original blank value was never a valid math value to begin with, so webcat knows it's a text value and prevents it from being reset as a math value.>> It seems to me that if you're going to set math values on the page, you should NOT preset them to a blank value with the text context, because they are not text variables. Instead you should be setting them to zero in a math context. If you do this, I think you will find that using a plain [varname] tag further on down the page *will* display the proper math variable value.>> :)>> ================================> Kenneth Grome, WebDNA Consultant> 808-737-6499, http://webdna.net> ================================>>-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to
.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
Associated Messages, from the most recent to the oldest:
Thanks guys!(and also for not getting thrown off by my forgetting to change the subject line.)-JohnKenneth Grome wrote:> >Ken (and others using Ken's technique of presetting variables with [text multi=T]var1=&var2=&etc...[/text],> >> >I discovered today that if I preset varibales as I mention above at the top of my template (using [text]), and then later down I try to reset their values with a [math] context, and then later try to grab> >their value by just using [varname], then what I get is a value of nothing (what I set with the [text]), even if the [math] should have changed the value. Can anyone verify this behaviour? If right,> >then this may be a situation when one would not want to use the technique?>> I think the problem here is that you're setting text variables to blank instead of setting math variables to zero. Blank is not a valid math value, math values have to be numeric -- not blank.>> Thus, when you try to reset the blank text variable with a math context, it does not work properly, because the original blank value was never a valid math value to begin with, so webcat knows it's a text value and prevents it from being reset as a math value.>> It seems to me that if you're going to set math values on the page, you should NOT preset them to a blank value with the text context, because they are not text variables. Instead you should be setting them to zero in a math context. If you do this, I think you will find that using a plain [varname] tag further on down the page *will* display the proper math variable value.>> :)>> ================================> Kenneth Grome, WebDNA Consultant> 808-737-6499, http://webdna.net> ================================>>-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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
John Butler
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:
WC2.0 Memory Requirements (1997)
Location of Browser Info.txt file (1997)
Pull down menu Search (1999)
flushdatabases (1997)
A multi-processor savvy WebCatalog? (1997)
How to best sort in a pre-defined item-by-item order ... (2003)
RE: CloseDatabase (1997)
Nested tags count question (1997)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
search/showif issues (2000)
Running _every_ page through WebCat ? (1997)
RE: [BULK] [WebDNA] Can WebDNA corrupt a db? (2012)
WebCat2b12 - New features for 1.6 users ... (1997)
Emailer (1997)
404s - Apache vs. WebDNA (2008)
RAM variables (1997)
WebCat for mass emailings (1997)
WebDNA Running Out of RAM? (2004)
Download capabilities (1997)
Public Beta for WebCatalog 4.0 is Available (2000)