Copying entire record to MEMPTR

Posted by Admin on 15-Nov-2008 15:07

Hello,

In Progress' OpenEdge Developement Programmer Interface Manual it states that you can copy an entire OpenEdge database record to a MEMPTR type. This is done through the RAW-TRANSFER.

This works fine, but now the question is, when I pass this MEMPTR to an EPI say a windows DLL and I want to examine the data, what is the structure of the data in this MEMPTR.

Doing some basic tests, I can see that character fields are in the mempointer, but they appear in the middle of the mempointer. I.E.

Say I have a Table with the following field order:

AName AS CHAR

AAge AS INT

ABirth AS DATE

In the MEMPTR, the AName may appear at say byte offset 48.

How does Progress define the how the data is structured in the MEMPTR.

Thanks

James

All Replies

Posted by jtownsen on 17-Nov-2008 02:53

I dare say that you'd probably be wanting to look at the fields' rpos values. I don't believe the information you're looking for is published anywhere and I'm also sure that whatever you're trying to do, you can expect that things will change from one version to the next as new features are introduced.

I would recommend either passing simple types or writing the information to an (extensible) XML structure that you pass over.

This thread is closed