home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / TEXT / PDX_ALL.ZIP / TI520.ASC < prev    next >
Text File  |  1991-09-11  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  PARADOX                                NUMBER  :  520
  9.   VERSION  :  ALL
  10.        OS  :  DOS
  11.      DATE  :  September 11, 1991                       PAGE  :  1/1
  12.  
  13.     TITLE  :  Rounding values in a field
  14.  
  15.  
  16.  
  17.  
  18.   To enter a script that will round the values in a specific field,
  19.   select [F10] Scripts\Editor\Create and type ROUND and press
  20.   [ENTER].  On the screen, type the following code:
  21.  
  22.   Edit "Table_Name"
  23.   Moveto [Field_Name]
  24.   Scan
  25.     []=Round([],n)
  26.   Endscan
  27.  
  28.  
  29.   Then select [F10] and Do_it!
  30.  
  31.   To play the script, select [F10] Scripts\Play, type ROUND and
  32.   press [ENTER].
  33.  
  34.   Comments:________________________________________________________
  35.  
  36.   Edit "Table_name"       Selects the table.  Replace the word
  37.                           Table_Name with the actual name of your
  38.                           table, don't forget to type the quotation
  39.                           marks.
  40.  
  41.   Moveto [Field_name]     Selects the field.  Replace the word
  42.                           Field_Name with the name of the filed to
  43.                           be changed, don't forget to type the
  44.                           square brackets.
  45.  
  46.   Scan                    Tell Paradox to scan through record by
  47.                           record.
  48.  
  49.   []=Round([],n)          Does the actual rounding.  Replace n with
  50.                           the number of decimal places desired.
  51.  
  52.   Endscan                 Ends the scan.
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.