home *** CD-ROM | disk | FTP | other *** search
/ Software Du Jour / SoftwareDuJour.iso / BUSINESS / DBASE / CLIPW85A.ARC / CLIPW85.ANA
Text File  |  1986-04-09  |  5KB  |  152 lines

  1.  
  2. CLIPPER WINTER '85 ANOMALY REPORT
  3. Researched and tested by Steve Straley
  4. Posted March 6th, 1986
  5.  
  6. Number-Command               Description / Example / Work-around
  7. ==================================================================
  8.  
  9. 1.   CREATE <filename>
  10.  
  11.      If a file is CREATEd "on the fly", using Clipper's internal
  12.      CREATE command, character fields can not be initialized with
  13.      a length over 256.  Ironically, there was a "push" to have
  14.      Jon's  CREATE utility program to accept character fields
  15.      over 256.
  16.  
  17.      [Example: Test1.prg]
  18.  
  19.         CREATE Temp
  20.         USE Temp
  21.         REPLACE field_name WITH "SAMPLE"
  22.         REPLACE field_type WITH "C"
  23.         REPLACE field_len WITH 3000
  24.         USE
  25.         CREATE Showit FROM Temp
  26.         USE Showit
  27.         GO TOP
  28.         ? LEN(sample)
  29.  
  30. 2.   CREATE <filename> - Utility Program
  31.  
  32.      If a file extention other than .DBF is wanted: forget it.
  33.      For example, if a file name is "HELP.DAT" and modification to
  34.      the structure is needed with the use of the CREATE utility,
  35.      the utility program will return with a message:
  36.  
  37.          "Unable to CREATE Help.dat.dbf"
  38.  
  39. 4.   INDEX ON <key> TO <filename>
  40.  
  41.      If a memo file is used in conjunction with an INDEX file with
  42.      an extention other than an .NTX (default), the INDEX ON
  43.      command will zap out the contents of the memo file.
  44.  
  45.      [Example: Test4.prg]
  46.  
  47. 5.   @ ... SAY <expC> PICT "###.##%"
  48.  
  49.      If this PICTURE is used with an expression with more than one
  50.      operator, the percent sign will not print out.
  51.  
  52.      [Example: Test5.prg]
  53.  
  54.         STORE 1 TO a
  55.         STORE 3 TO b
  56.         @ 1,1 SAY a/b PICT "###.##%"                && .33
  57.         @ 2,1 SAY a/b * 100 + .005 PICT "###.##%"   && 33.00
  58.         @ 3,1 SAY a/b * 100 PICT "###.##%"          && 33.00
  59.         @ 4,1 SAY a/b + .005 PICT "###.##%"         && .33
  60.  
  61.  
  62. 6.   STORE <string> TO <expC>
  63.  
  64.      If overlays are used with the OVERLAY NIL, $CONSTANTS command
  65. for Plink86 and a charcter memvar initialized in the calling
  66. routine is changed in an overlay, then all strings must be
  67. converted to  expressions in order to prevent the machine from
  68. locking up, from producing a system memory error, or even
  69. changing the values of variables throughout the application.
  70.  
  71.      WORKAROUND:  STORE "string" + "" TO variable
  72.  
  73. 7.   COPY TO <filename>
  74.  
  75.      Still returns a "1 file(s) copied" message.
  76.  
  77. 8.   @ ... SAY <expC> PICT "@Z ###.##"
  78.  
  79.      Numbers with this PICTURE clause will have decimals dropped.
  80.  
  81.      [Example: Test8.prg]
  82.  
  83.          store 0 to c, d, e
  84.          clear
  85.          @ 13,10 GET c PICT "@Z ###.##"    && 33.00
  86.          @ 14,10 GET d PICT "@Z###.##"     && 33.33
  87.          @ 15,10 GET e PICT "@Z ###.##"    && 33.00
  88.          READ
  89.  
  90.  
  91.      WORKAROUND:  Remove the space in the PICTURE clause between the
  92.                   "Z" and the first "#".
  93.  
  94. 9.   TYPE <filename>
  95.  
  96.      The TYPE command does not close the file once it has been
  97.      open.
  98.  
  99.      WORKAROUND:  RUN TYPE <filename>
  100.                   Acquire TYPEFIX.OBJ from Tech. Support
  101.  
  102. 10.  ROUND(expN, expN)
  103.  
  104.      Clipper does not handle a negative integer as the second
  105.      parameter in the ROUND command/function.  In dBASEIII, a
  106.      ROUND(4400,-3) would yield a 4000.
  107.  
  108.      WORKAROUND:  ROUND(number / 1000) * 1000
  109.  
  110. 11.  CLIPPER - Constants
  111.  
  112.      If in a CLiP file a list of programs are listed for
  113.      compilation, and the list will exceed the constant table
  114.      size, no error will be generated and at the end of the
  115.      compiling progess, the constant size registers a negative
  116.      number.
  117.  
  118. 12.  @ SAY ... GET PICT "(###)###-###"
  119.  
  120.      If a numeric value is initialized to 0 and an @ SAY ... GET
  121.      is performed on that variable using the PICTURE clause
  122.      above, the last three digits are dropped.
  123.  
  124.      [Example: Test12.prg]
  125.  
  126.      STORE 0 TO x
  127.      @ 10,12 SAY "Enter phone number: " GET x PICT "(###)###-####"
  128.      READ
  129.      ? x
  130.  
  131. 13.  LINKING - 2 Floppy Disk System
  132.  
  133.      Because of the increase in size of the CLIPPER.LIB, the
  134.      following is the recomended procedure for linking an
  135.      application on a restrictive two floppy disk system.
  136.  
  137.      DRIVE A:     CLIPPER.LIB
  138.                   Object files up to 45k in size
  139.  
  140.      DRIVE B:     PLINK86.EXE
  141.                   Object files up to 100k in size
  142.                   Allowing an executable file of 180k.
  143.  
  144.      Keep in mind that the allotted space for the executable file
  145.      is dependant on available space as well as the amount of
  146.      object code being linked.   Start the linking from the B:
  147.      drive, calling the A: drive for the Clipper.Lib as well as
  148.      any other abject file located there.  Keep in mind that due
  149.      to this new way of linking, the entire batch file scheme is
  150.  
  151. --End--
  152.