Re: Expected Behavior?
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 23186
interpreted = N
texte = On 2/2/1999 11:33 am, charles kline so noted...>The other question is...do I need to set Total=0 to begin with? And why.>>> [Math show=F]Total=0[/Math]>>> [Search db=admin/holdings.db&neCompNamedata=[blank]]>>> [FoundItems]>>> [Math show=F]Total=([Total]+[PrcntHolding])[/Math]>>> [ShowIf [Math][index]%2[/Math]=1]Yes, because in this instance, if you don't initialize Total to zero, your first attempt to use [Total] will *literally* be [Total] (since WebCat hasn't seen the variable before) and break your [math].Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com
Associated Messages, from the most recent to the oldest:
On 2/2/1999 11:33 am, charles kline so noted...>The other question is...do I need to set Total=0 to begin with? And why.>>> [Math show=F]Total=0[/Math]>>> [Search db=admin/holdings.db&neCompNamedata=[blank]]>>>
[founditems]>>> [Math show=F]Total=([Total]+[PrcntHolding])[/Math]>>> [ShowIf
[math][index]%2[/Math]=1]Yes, because in this instance, if you don't initialize Total to zero, your first attempt to use [Total] will *literally* be [Total] (since WebCat hasn't seen the variable before) and break your
[math].Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.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:
Multiple 'Users.db' files not possible (1997)
is there a global includes directory? (1998)
WebCat2.0 [format thousands .0f] no go (1997)
Emailer error 550? (1999)
updating checkbox in a db (1998)
more [sendmail] woes.. (2000)
Misc Stuff That Might Help (1997)
Oops, my mistake - (was Bad suffix error) (1997)
WebCat2b13MacPlugIn - syntax to convert date (1997)
Newbie trouble with [url] & [foundItems] (2000)
Date search bug (1998)
Grepping text variable tags (was: No subject given) (2000)
Summary search -- speed (1997)
Weird problems with [SHOWIF]s (1997)
WCS Newbie question (1997)
Buying sans cart (1997)
[REPLACE] inside [FOUNDITEMS] (1998)
Bad creator codes which cause access denied error message (1997)
Forcing a NEWCART (1997)
AuthorizeNet Declines (2005)