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 Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Expected Behavior? (PCS Technical Support 1999)
  2. Re: Expected Behavior? (PCS Technical Support 1999)
  3. Re: Expected Behavior? (Rob Marquardt 1999)
  4. Re: Expected Behavior? (charles kline 1999)
  5. Re: Expected Behavior? (PCS Technical Support 1999)
  6. Re: Expected Behavior? (Howard Wolosky 1999)
  7. Expected Behavior? (charles kline 1999)
  8. Re: Expected behavior? (PCS Technical Support 1998)
  9. Re: Expected behavior? (Kenneth Grome 1998)
  10. Expected behavior? (Kenneth Grome 1998)
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 Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.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)