Re: where's Formulas.db?

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 37030
interpreted = N
texte = >This said, it would be nice of SMSI to finally allow us to use our >own Formulas.db for values other than Price, unitShipCost, Taxable, >etc. > > [quadratic file=^myformulas.db&parm1=[x]&parm2=[y]] > >returns > > x**2 + y**2 > >or whatever. WebCat should be smart enough to recognize that any >keyword that does not match one of its own must be a formula listed >in the file ^myformulas.db (in that case). >You can emulate that functionality with standard WC code.In you file: [include file=^formulas.inc&eq=quadratic¶m1=[x]¶m2=[y]]In formulas.inc: [interpret] [lookup db=^myformulas.db&lookinfield=eq&value=[eq]&returnfield=eqcode¬found=[eq] not found.] [/interpret]In myformulas.db: eq eqcode quadratic [math][param1]**2+[param2]**2[/math]-Sam------------------------------------------------------------- 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:

    
  1. Re: where's Formulas.db? (Samuel Renkert 2001)
  2. Re: where's Formulas.db? (John Peacock 2001)
  3. Re: where's Formulas.db? (Charles Kline 2001)
  4. where's Formulas.db? (Brian Wachter 2001)
>This said, it would be nice of SMSI to finally allow us to use our >own formulas.db for values other than Price, unitShipCost, Taxable, >etc. > > [quadratic file=^myformulas.db&parm1=[x]&parm2=[y]] > >returns > > x**2 + y**2 > >or whatever. WebCat should be smart enough to recognize that any >keyword that does not match one of its own must be a formula listed >in the file ^myformulas.db (in that case). >You can emulate that functionality with standard WC code.In you file: [include file=^formulas.inc&eq=quadratic¶m1=[x]¶m2=[y]]In formulas.inc: [interpret] [lookup db=^myformulas.db&lookinfield=eq&value=[eq]&returnfield=eqcode¬found=[eq] not found.] [/interpret]In myformulas.db: eq eqcode quadratic [math][param1]**2+[param2]**2[/math]-Sam------------------------------------------------------------- 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/ Samuel Renkert

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:

A better WebCat whois (was [OT] Domain Name Scam) (2000) Need help, multiple shipping options (2000) [WebDNA] test (2011) Database Import/Export (1998) Caching [include] files ... (1997) NT vs Mac (1997) Ampersand (1997) Help! Strange happenings... (1997) No more misunderstanding ... yay! :) (1997) Help! WebCat2 bug (1997) Secure server question (1997) talking to MacAuthorize (1997) Editor (2000) Bizarre behavior texta behavior (2004) Can you do this??? and other stuff (1997) HELP WITH DATES (1997) Install Webcatalog under NT4.0 and Microsoft IIS 2.0 (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) RE: IIS4b2 and WebCatalog b19 (1997) WebCatalog for Postcards ? (1997)