Re: Resetting a Formvariable
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 35223
interpreted = N
texte = On 7/26/00 1:07 pm, Glenn Busbin so noted...>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?For WC3, you'd be better off assigning the formvariable to a new variable that gets used throughout the page:[math show=f]nuQuantity=[quantityordered][/math][showif [nuQuantity]>[numavailable]][Math][nuQuantity]=[numavailable][/math][/showif]... replacing [quantityordered] for [nuQuantity] throughout the remainder of the page.(FYI, for WC4, the way you're currently doing it would work : )Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.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:
On 7/26/00 1:07 pm, Glenn Busbin so noted...>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?For WC3, you'd be better off assigning the formvariable to a new variable that gets used throughout the page:[math show=f]nuQuantity=[quantityordered][/math][showif [nuQuantity]>[numavailable]][math][nuQuantity]=[numavailable][/math][/showif]... replacing [quantityordered] for [nuQuantity] throughout the remainder of the page.(FYI, for WC4, the way you're currently doing it would work : )Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.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/
Rob Marquardt
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:
IIS4 & Password Authentication, request example (1998)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
Record size (1998)
Bug Report, maybe (1997)
Another bug to squash (WebCat2b13 Mac .acgi) (1997)
Real Audio files (1997)
OFF-TOPIC: Check www.godaddy.com for me ... (2003)
Ship Cost Calculated via Subtotal (1998)
[ModDate] & [ModTime] ? (1997)
Spawning Holdup? (2000)
pop up menu's (1998)
SSL with IIS 4.0 (1998)
Questions about maximum (1999)
E-mailer error codes (1997)
Using Plug-In while running 1.6.1 (1997)
Using Plug-In while running 1.6.1 (1997)
[ShowIf] if the varieable exists (1998)
include bug????? (1997)
Trouble with formula.db (1997)
Duplicate Messages (1998)