Re: Resetting a Formvariable
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 35218
interpreted = N
texte = As far as I know, you can not reassign a value to a fomrvariable.There are ways to get around, after you reset the value of quantityordered,how are you using that variable? If you want to append this value into thedatabase, you can do this[showif [quantityordered]>[numavailable]][text]NewQtyOrdered=[numavailable][/text][/showif][hideif [quantityordered]>[numavailable]][text]NewQtyOrdered=[quantityordered][/text][/hideif]after this point, instead of [quantityordered] variable you can use[NewQtyOrdered] variable.Can this work for you?========================================================== _O_/\NUP Setty/ | \/ERTical Net / \ http://www.vertical.net _\ \_ 336-218-8562 Ext. 218o o o o==========================================================----- Original Message -----From: Glenn Busbin
To: WebCatalog Talk Sent: Wednesday, July 26, 2000 2:07 PMSubject: Resetting a Formvariable> 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:
As far as I know, you can not reassign a value to a fomrvariable.There are ways to get around, after you reset the value of quantityordered,how are you using that variable? If you want to append this value into thedatabase, you can do this[showif [quantityordered]>[numavailable]][text]NewQtyOrdered=[numavailable][/text][/showif][hideif [quantityordered]>[numavailable]][text]NewQtyOrdered=[quantityordered][/text][/hideif]after this point, instead of [quantityordered] variable you can use[NewQtyOrdered] variable.Can this work for you?========================================================== _O_/\NUP Setty/ | \/ERTical Net / \ http://www.vertical.net _\ \_ 336-218-8562 Ext. 218o o o o==========================================================----- Original Message -----From: Glenn Busbin To: WebCatalog Talk Sent: Wednesday, July 26, 2000 2:07 PMSubject: Resetting a Formvariable> 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/
Anup Setty
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:
WebCatalog and Webstar 3.02 (1998)
multi-paragraph fields (1997)
webcat in the subject line - SMSI (2002)
unable to launch acgi in WebCat (1997)
WCS Newbie question (1997)
Setting up shop (1997)
Me know logical no need (2002)
broken [include]s (1998)
9 digit zip (2002)
OT : javascript form filling (2000)
Lookup command (1998)
Emailer port change (1997)
Problems problems problems (1997)
WebCat2: Found Items syntax, etc. (1997)
Sendmail for intranet server (2004)
Mozilla/4. and Browser Info.txt (1997)
WebDNA Codes in Secure Mode (1997)
Newbie questions (1999)
[isfile] ? (1997)
Re1000001: Setting up shop (1997)