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:
OT - ImageMagick on MacOS X (2004)
WebDNA Codes in Secure Mode (1997)
two unique banners on one page (1997)
Applescript error (1998)
[WebDNA] Recursive File Listing (Listfile) (2019)
2.1b3 --> way slow (1997)
WebCat2 - [SendNews] (1997)
Another question (1997)
Emailer (1997)
Bug Report, maybe (1997)
Help! WebCat2 bug (Ben's input) (1997)
WebCat B13 Mac CGI -- Frames question (1997)
Firewalls - What's Good? (1999)
using cookies to prevent access (2000)
Some Questions (1997)
WCS Newbie question (1997)
Follow-up to listfiles bug report ... (2003)
[Listfiles] vs Netfinder (1997)
Pipes instead of tabs (1998)
Secure Server basic question... (1997)