Re: Resetting a Formvariable
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 35209
interpreted = N
texte = use-[Math]quantityordered=[numavailable][/math]instead of-[Math][quantityordered]=[numavailable][/math];-)PS -[Formvariables][name], [value][/Formvariables]or[FormVariables name=quantityordered&exact=T] [name], [value][/FormVariables][FormVariables name=numavailable&exact=T] [name], [value][/FormVariables]but not-[Formvariables][quantityordered], [numavailable][/Formvariables](I think)-JohnGlenn Busbin wrote:> I'm passing a formvariable ok, but need to evaluate it after it's passed.> If [quantityordered] is greater than [numavailable], I want to reset> [quantityordered] = [numavailable].>> I'm using:>> [showif [quantityordered]>[numavailable]]> [Math][quantityordered]=[numavailable][/math][/showif]>> This always sets [quantityordered]=0 no matter how large [numavailable] is.>> Using:> [Formvariables]> [quantityordered], [numavailable]> [/Formvariables]>> shows that the correct values are being passed.>> Why can't I reset the value of this variable as per the docs for WC3?>> Thanks,> Glenn>> -------------------------------------------------------------> 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 > Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
use-[math]quantityordered=[numavailable][/math]instead of-[math][quantityordered]=[numavailable][/math];-)PS -[formvariables][name], [value][/Formvariables]or[FormVariables name=quantityordered&exact=T] [name], [value][/FormVariables][FormVariables name=numavailable&exact=T] [name], [value][/FormVariables]but not-[formvariables][quantityordered], [numavailable][/Formvariables](I think)-JohnGlenn Busbin wrote:> I'm passing a formvariable ok, but need to evaluate it after it's passed.> If [quantityordered] is greater than [numavailable], I want to reset> [quantityordered] = [numavailable].>> I'm using:>> [showif [quantityordered]>[numavailable]]> [math][quantityordered]=[numavailable][/math][/showif]>> This always sets [quantityordered]=0 no matter how large [numavailable] is.>> Using:> [formvariables]> [quantityordered], [numavailable]> [/Formvariables]>> shows that the correct values are being passed.>> Why can't I reset the value of this variable as per the docs for WC3?>> Thanks,> Glenn>> -------------------------------------------------------------> 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 > Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
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:
Calendar using WebCatalog? (1997)
New commands in Final candidate (1997)
headers (2000)
Shipping formula problem (1997)
[LISTFILES] (1998)
Process SSI and WebCatalog.acgi (1998)
Alternative colors? (2000)
Formatting a .txt file (1998)
faxing orders (2000)
Zip Code Search (2000)
whole word matching (2004)
Custom WebCat Prefs ... (1997)
docs for WebCatalog2 (1997)
Friday night shopping site joke (1997)
[Announce]: Web server security and password protection (1997)
Possible Bug in 2.0b15.acgi (1997)
Math Hell! (2000)
WebMerchant crashing and other WebMerchant problem (2000)
[SubTotal] ??? (1998)
php vs WebCatalog (2000)