Re: Expected Behavior?

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23173
interpreted = N
texte = >My question is this. Why do I have to set the variable Total twice? > > [Math show=F]Total=0[/Math] > [Search db=admin/holdings.db&neCompNamedata=[blank]] > [FoundItems] > [Math show=F]Total=([Total]+[PrcntHolding])[/Math] > >If I remove the line [Math show=F]Total=0[/Math] it stops working.Your second equations depends on the value of Total. If you don't first set Total to 0, then the value of Total is undefined, and will cause the second equation to fail.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.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)
>My question is this. Why do I have to set the variable Total twice? > > [Math show=F]Total=0[/Math] > [Search db=admin/holdings.db&neCompNamedata=[blank]] > [founditems] > [Math show=F]Total=([Total]+[PrcntHolding])[/Math] > >If I remove the line [Math show=F]Total=0[/Math] it stops working.Your second equations depends on the value of Total. If you don't first set Total to 0, then the value of Total is undefined, and will cause the second equation to fail.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

[WebDNA] Frustrated ... (2019) Limit on nested [ShowIf]'s? (1997) Apology to list (2002) Cart questions (1997) RE: problems with dos and tracert + webDNA (1998) [WebDNA] Need someone to port CakePHP auction site to (2010) Buying sans cart (1997) Newbie problem blah blah blah (1997) tcp connect includes (1999) Striping Characters (1998) problems with 2 tags (1997) WCS Newbie question (1997) PCS Emailer's role ? (1997) no global [username] or [password] displayed ... (1997) Progress !! WAS: Trouble with formula.db (1997) OH CRAP!!!!!- Template not found error!!! (1999) WebCat2b15MacPlugin - [protect] (1997) two of the same named db's open at once (1998) [Listfiles] vs Netfinder (1997) Multiple catalog databases and showcart (1997)