Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

   A computed field is a particular field type that allows computations to be
   performed on the field before it is saved and written to disk. The
   computation can be an operation between 2 fields or an expression. In the
   current option, an expression can be entered.

   --------------------------------------------------------------------------
   The computation does only work correctly if the field is NOT put on the
   data entry form. If put on the screen, the value entered will gain
   precedence over the definition set.
   --------------------------------------------------------------------------

Example:

   A field in the Invoice Rows (TotRow) must contain the total of the single
   invoice detail quantity and the associated article's price. The expression
   to enter is the following:

   InvRow->Qty * Art->ArtPrc

   In the example, the Invoice Details file has a N:1 to the Articles file.
   If this were not the case, the expression could be written as:

   InvRow->Qty * dfArtPrc( InvRow->ArtCode )

   where dfArtPrc() seeks the article code and returns the price. It is also
   possible to enter expressions, like:

   10000+(18000*3)/4

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson