Unit Inmem |
This is an InMemoryTable example for Delphi 2.0. Free for anyone to use, modify and do whatever else you wish. This version has been tested with Delphi 2.0 and seems to work fine. This does NOT work with 16-bit Delphi! The 16-bit version is in a file called inmemory.zip. Just like all things free it comes with no guarantees. I cannot be responsible for any damage this code may cause. Let me repeat this: WARNING! THIS CODE IS PROVIDED AS IS WITH NO GUARANTEES OF ANY KIND! USE THIS AT YOUR OWN RISK - YOU ARE THE ONLY PERSON RESPONSIBLE FOR ANY DAMAGE THIS CODE MAY CAUSE - YOU HAVE BEEN WARNED! THANKS to Steve Garland <72700.2407@compuserve.com> for his help. He created his own variation of an in-memory table component and I used it to get started. InMemory tables are a feature of the Borland Database Engine (BDE). InMemory tables are created in RAM and deleted when you close them. They are much faster and are very useful when you need fast operations on small tables. This example uses the DbiCreateInMemoryTable DBE function call. This object should work just like a regular table, except InMemory tables do not support certain features (like referntial integrity, secondary indexes and BLOBs) and currently this code doesn't do anything to prevent you from trying to use them. You will probably get some error if you try to create a memo field. If you have comments - please contact me at INTERNET:grisha@mira.com Happy hacking! Gregory Trubetskoy http://www.mira.com/home/grisha
Classes |
Functions |
Types |
Constants |
Variables |
Functions |
Types |
Constants |
Variables |