home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / delphi / kompon / d123456 / ANRMLB.ZIP / objects / readme.txt < prev   
Text File  |  2001-09-04  |  1KB  |  23 lines

  1. 1- mlb2.pas
  2. this file contains the basic MyLittleBase Object (TMlb2) that inherits from TObject,
  3. from which all custom modules will inherit.
  4.  
  5. use mlb := TMlb2.Create to allocate a new mlb instance, 
  6. and don't forget to free the object at the end by using mlb.Free
  7.  
  8. 2- mlb2sql.pas
  9. this file contains the experimental mono-table little SQL engine.
  10. it needs the basic object's file (mlb2.pas), to be either in the lib directory of delphi, 
  11. or in the same directory as mlb2sql.pas
  12.  
  13. use sql := TMlb2Sql.Create(mlb) to allocate a new sql instance working on the table mlb of type Mlb2,
  14. use something like sql.Execute('SELECT DISTINCT WHERE field='AAA') to query the table mlb.
  15. Result tables can be accessed by sql.GetDynaSet which is a TMlb2 object (a new table) for the query result,
  16. and the sql.GetComplement which is a TMlb2 object too (a new table).
  17. At the end free with sql.Free.
  18.  
  19. To sum up mlb contains the table to query, 
  20. sql.Execute executes the query,
  21. sql.GetDynaset points to a new table containing the query's result,
  22. and sql.GetComplement points to a new table containing mlb's rows minus GetDynaset's rows.
  23.