Ray Joslyn
Usenet Archive
- Joined
- Jan 19, 2000
- Messages
- 73
- Reaction score
- 0
I want to read info from a cell that has been deleted and then undone. I'm trapping the event with the userUndo_command. But when I try to read the element descriptor from the filepos from the undo info I get NULL. Here is a sample of what I'm doing
first I set the undo function with:
mdlUndo_setFunction(UNDOFUNC_UNDO_COMMAND,undoCommand);
int undoCommand
(
UndoInfo *undoInfo,
MSElementUnion *element
)
{
MSElementDescr *elmDesP;
if(element->hdr.ehdr.type=CELL_HEADER_ELM)
mdlElmdscr_read(&elmDesP, undoInfo->filePos, MASTERFILE, FALSE, NULL);
any suggestions on what I'm doing wrong?
Thanks
Ray
first I set the undo function with:
mdlUndo_setFunction(UNDOFUNC_UNDO_COMMAND,undoCommand);
int undoCommand
(
UndoInfo *undoInfo,
MSElementUnion *element
)
{
MSElementDescr *elmDesP;
if(element->hdr.ehdr.type=CELL_HEADER_ELM)
mdlElmdscr_read(&elmDesP, undoInfo->filePos, MASTERFILE, FALSE, NULL);
any suggestions on what I'm doing wrong?
Thanks
Ray