You could maybe provide two fields in the database, one for multiply/divide (default to 1) and one for add/substract (default to 0), and just perform both operations, if the values are at default the result is unchanged

----- Original Message -----
  From: Les Mizzell
  To: CF-Talk
  Sent: Thursday, October 23, 2003 6:02 AM
  Subject: Re: Add or Multiply as a Variable - Question Repharased

  Michael T. Tangorre wrote:

  > why would you want to do this?

  > For:
  >
  > #DollarFormat(ST_100.DIST_COST * ADJUST.ADJUST100)#
  >
  > How would I make the Arithmetic _expression_ "*"  a variable from the
  > database..

  I know I can do this with a "switch" of "if" structure, but I'm really
  curious if there *is* a way to do it with just the one line of code...

  --
  Les Mizzell
  -------------------------
  "Mihi placent, O Pincerna!
    Virent ova! Viret perna!
    Dapem posthac non arcebo.
    Gratum tibi me praebebo."


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to