Menu

#84 Cannot copy a Memo field into a memory based tDbf

Win32_only
open
nobody
3
2016-02-16
2016-02-16
No

It took a little bit to even figure out how to set up a memory based tDbf, examples would really be nice, but now I'm trying to copy the records from a file based tDbf to a memorystream based tDbf and it keeps failing when it gets to the first Memo field in the file. The source tDbf file has 27 fields, a mixture of integers, strings, a datetime and then a memo (at position 22). I create the memorystream table and use createtableex with the fielddefs from the file based table, then I start populating the new memorystream table from the file table and it fails when it gets to the memo field, it uses a TNullMemoFile to create the memo field of the memory stream table and apparently it never opens the memo file because it errors in trying to write the memo field data to a non-existent object.

Discussion


Log in to post a comment.