How to get header elem from a component?

Status
Not open for further replies.

foo

Usenet Archive
Joined
Sep 9, 2001
Messages
144
Reaction score
0
Hi, MDL expert

I use 'mdlLocate_findElement' to get a element which perhaps is a component element. How can I get this component's header element?

Thanks.

Foo.
 
I use 'mdlLocate_findElement' to get a element which perhaps is a component element. How can I get this component's header element?

Look at the MSElementDescr struct definition (search help for 'element descriptor').

Each element descriptor includes pointers to other members of a complex element, including the complex header.
 
I know element descriptor structure very much. But the problem is 'mdlLocate_findElement' function return a component element not a element descriptor.

Foo.
 
I know element descriptor structure very much. But the problem is 'mdlLocate_findElement' function return a component element not a element descriptor.

You probably don't need to use this function. Your <datapoint> (accept) function is called when an element is located. At that moment, you can retrieve the position of the current element using filePos = mdlElement_getFilePos (FILEPOS_CURRENT, ...);

This should be the position of the header of a complex element or cell.
 
Status
Not open for further replies.

Latest threads

Back
Top