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

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Paradox                                NUMBER  :  540
  9.   VERSION  :  All
  10.        OS  :  DOS
  11.      DATE  :  February 5, 1992                         PAGE  :  1/1
  12.  
  13.     TITLE  :  Converting a Field in a Table Using Format
  14.  
  15.  
  16.  
  17.  
  18.   The following script demonstrates the use of SCAN to change
  19.   Fieldname to upper case.  A complete description of SCAN can be
  20.   found in the PAL User's Guide.  Refer to the PAL User's Guide's
  21.   index under "Scan command" for the page number.
  22.  
  23.   This is handled through the use of FORMAT, which is explained in
  24.   detail the PAL User's Guide.  Refer to the PAL User's Guide's
  25.   index under "Format function" for the page number.
  26.  
  27.   Note:
  28.        TBLNAME is the name of the table.
  29.        Fieldname is the name of the field.
  30.  
  31.   The following script converts the field Fieldname, in the table
  32.   TBLNAME, to upper case, via the use of the FORMAT specification
  33.   cu.
  34.  
  35.   EDIT "TBLNAME"      ;Place the table in edit mode.
  36.   SCAN
  37.        [Fieldname] = format("cu",[Fieldname])
  38.   ENDSCAN             ;Scan and convert field values.
  39.   DO_IT!              ;Save all changes.
  40.  
  41.  
  42.   The following script converts the field Fieldname, in Table
  43.   TBLNAME, to lower case, via the use of the FORMAT specification
  44.   cl.
  45.  
  46.   EDIT "TBLNAME"      ;Place the table in edit mode.
  47.   SCAN
  48.        [Fieldname] = format("cl",[Fieldname])
  49.   ENDSCAN             ;Scan and convert field values.
  50.   DO_IT!              ;Save all changes.
  51.  
  52.   The following script converts the field Fieldname, in Table
  53.   TBLNAME, to initial capital letter only, via the use of the
  54.   FORMAT specification cc.
  55.  
  56.   EDIT "TBLNAME"      ;Place the table in edit mode.
  57.   SCAN
  58.        [Fieldname] = format("cc",lower([Fieldname]))
  59.   ENDSCAN             ;Scan and convert field values.
  60.   DO_IT!              ;Save all changes.
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.