Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread How to use Memory tables?
Wed, May 30 2007 6:15 PMPermanent Link

Dave Harrison
I'm trying to use a memory TDBISAMTable and I've set the databasename to
 MEMORY. I've added several fields to the fields editor and tried to
set the table active at design time and I get an exception "You must
define at least one field before you can open an in-memory table at
design-time". Well, I've defined 4 fields and still can't open it.

I have the table's SessionName set to the same session as the other
tables. Should memory tables have a new session table?

Other times when I try and open it at design time I'll get "DBISAM
Engine error # 11010 Table of backup file 'mymemorytable' does not exist".

Is there a trick to using a memory TDBISAMTable?? I couldn't find any
references to using a memory table (except SQL) in the help file. Does
anyone know what the help topic is?

TIA

Dave
DBISAM v4.22
Wed, May 30 2007 6:22 PMPermanent Link

Dave Harrison
Dave Harrison wrote:

> I'm trying to use a memory TDBISAMTable and I've set the databasename to
>  MEMORY. I've added several fields to the fields editor and tried to set
> the table active at design time and I get an exception "You must define
> at least one field before you can open an in-memory table at
> design-time". Well, I've defined 4 fields and still can't open it.
>
> I have the table's SessionName set to the same session as the other
> tables. Should memory tables have a new session table?
>
> Other times when I try and open it at design time I'll get "DBISAM
> Engine error # 11010 Table of backup file 'mymemorytable' does not exist".
>
> Is there a trick to using a memory TDBISAMTable?? I couldn't find any
> references to using a memory table (except SQL) in the help file. Does
> anyone know what the help topic is?
>
> TIA
>
> Dave
> DBISAM v4.22

Ok, I learned something today. SmileI entered the fields using the
FieldDefs property in the ObjectInspector and then I could open the
memory table. I always thought using the FieldsEditor would be the same
as adding fields to the memory table definition. D'uh?

Dave
Thu, May 31 2007 3:03 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Dave,

<< Ok, I learned something today. SmileI entered the fields using the
FieldDefs property in the ObjectInspector and then I could open the memory
table. I always thought using the FieldsEditor would be the same as adding
fields to the memory table definition. D'uh? >>

Unfortunately, no. The FieldDefs define the structure whereas the TFields
surface the ability to read/write to the fields and define virtual fields.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image