home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / TEECHART / Delphi1_And_Delphi2 / EXAMPLES / DATABASE / UEDITAB.TXT < prev    next >
Encoding:
Text File  |  1998-10-24  |  943 b   |  31 lines

  1. teeMach, SL
  2. TeeChart-Pro 
  3. =================
  4.  
  5. Positionating the current record in Table or Query
  6. components after editing values.
  7. ---------------------------------------------------
  8.  
  9. This example shows how to use a BookMark component
  10. (see Delphi help about BookMarking), and then use
  11. this bookmark to positionate the current record to
  12. the same record that was edited.
  13.  
  14.  
  15. This is useful when Series are connected to tables,
  16. and the user is allowed to modify records.
  17.  
  18. When modified records are posted, TeeChart
  19. automatically refreshes all Series connected to that
  20. table.
  21.  
  22. But, it doesn't preserves the current record position
  23. because when refreshing it's "too late" to obtain 
  24. a bookmark.  
  25.  
  26. (Delphi provides bookmarks *before* the record is edited)
  27.  
  28. The example uses the Table OnBeforeEdit and OnAfterPost 
  29. events to create and reuse the "bookmark".
  30.  
  31. ----------------------------------------------------------------