TMEMTABLE v. 1.01 (22. Jan 1999) ========================================================================= An inmemory temporary table. BEFORE USING THIS COMPONENT, YOU ARE REQUESTED TO READ ALL OF THIS TEXT DOCUMENT AND SPECIALLY TO NOTICE AND ACCEPT THE DISCLAIMER. Can be used as a demonstration of how to create descendents of TDataSet, or as in my case, to allow a program to generate temporary data that can be used directly by all data aware controls. Copyright 1999 Kim Bo Madsen/Optical Services - Scandinavia All rights reserved. You are allowed to used this component in any project for free. You are NOT allowed to claim that you have created this component or to copy its code into your own component and claim that is was your idea. Im offering this for free for your convinience, and the ONLY thing I request is to get an e-mail about what project this component (or dirived versions) is used for. That will be my reward of offering this component for free to you! You dont need to state my name in your software, although it would be appreciated if you do. If you find bugs or alter the component (f.ex. see suggested enhancements further down), please DONT just send the corrected/new code out on the internet, but instead send it to me, so I can put it into the official version. You will be acredited if you do so. To use it, some fields has to be defined, either programmatically by setting up fielddefs, or by doubleclicking TMemTable icon on the form. - Rightclick to get menu. - Choose New field. - Specify field name and type + optionaly size (only for strings). - Make sure that fieldtype is Data. - Add more optional data, calculated or lookup fields if needed. The field definitions will be stored on the form automatically if created this way. To use it: Use it like any other TTable. Eg: Open, Add records, Read records, Close. Remember that when the close is issued, all records are forgotten. Suggested enhancements: - SaveToFile, LoadToFile, SaveToStream, LoadFromStream methods. - Dialogeditor for adding static data to the memory table in the IDE. - Sorting mechanisms for specifying sortorder on a specific field. DISCLAIMER By using this component or parts theiroff you are accepting the full responsibility of the use. You are understanding that the author cant be made responsible in any way for any problems occuring using this component. You also recognize the author as the creator of this component and agrees not to claim otherwize! Please forward corrected versions (source code ONLY!), comments, and emails saying you are using it for this or that project to: kbm@optical.dk //============================================================================= History: 1.0: The first release. Was created due to a need for a component like this. 1.01: The first update. Release 1.0 contained some bugs related to the ordering of records inserted and to bookmarks. Problems fixed.