home *** CD-ROM | disk | FTP | other *** search
/ RBBS in a Box Volume 1 #3.1 / RBBSIABOX31.cdr / ddut / dbase.bg1 < prev    next >
Text File  |  1983-10-26  |  2KB  |  39 lines

  1. Version  2.4  of DBASE II has been out for about a month now
  2. and it is just starting  to  get  some  heavy  use  as  some
  3. applications  are  being  converted  from previous versions.
  4. During a conversion process, I came across a bug in the  new
  5. version  which  could  be very frustrating if you don't know
  6. what is happening.
  7.  
  8. If  you  use  a text editor (I use PMATE) or word processor,
  9. such as Wordstar, to create a DBASE command file (.PRG), you
  10. will find that DBASE  will  not  read  the  last,  partially
  11. filled sector of the file.  It's own editor (MODIFY COMMAND)
  12. writes  out  data  512  bytes at a time (even though you may
  13. have entered only 10) so it doesn't have a  problem  reading
  14. it  back.   Other editors generally write out a file that is
  15. exactly the size of the data entered.
  16.  
  17. What this causes is the last portion of your command file to
  18. be  ignored  and an implied RETURN to be executed.  This can
  19. cause all kinds  of  strange  happenings  in  your  programs
  20. depending upon what is in the last 3 or 4 lines of code.  It
  21. is  definitely a problem for people taking the command files
  22. from an older version of DBASE to this new  version  as  the
  23. programs  will  malfunction  in  a variety of ways, possibly
  24. even not updating the database when you think it has.
  25.  
  26. The  circumvention  for  the  problem is to place a bunch of
  27. blank comment lines (lines beginning with an * and  followed
  28. by  a  lot  of  blanks)  to  pad out the command file.  This
  29. causes the command file to span another sector, which  DBASE
  30. will  fail  to read, but that is OK as it only has the blank
  31. lines in it.
  32.  
  33. I  contacted  Ashton-Tate  who  said  they were aware of the
  34. problem and recommended the above procedure to eliminate the
  35. error.
  36.  
  37. Gene Plantz  Sysop, Chicago IBMPC BBS 312/882-4227  STG476
  38.  
  39.