J
John Carlier
I have a written a com addin based on the Microeye example. This addin
handles two extra custom properties that I have added to the, renamed
(p.2) tab in an customised appointment form. These two properties
specify additional time before and after a meeting. In the
objApptItem_Write event I have added code to generate/modify two extra
appointment items, 1 before and 1 after the 'Main' appointment item.
All of this works fine. I have even added code for the Explorer events
etc etc.
The problem is when a user opens an existing item, modifies the
contents on before and after controls and then CANCELs the action.
i.e. presses the [X] and then answeres No to "Do you want to save
changes?". This appears to work ok until you open the item again and
look at the contents of the controls. Here I find the values I entered
just before I cancelled.
Looking in the code I see in the colInsp_NewInspector event that the
object objApptItem is assigned the value of the current item. This I
think is part of the problem as this is not set to Nothing, and seems
to be holding the bad values. I can not see where/how/if I should set
this to nothing.
Is this a known problem?
Ideas?
John.
handles two extra custom properties that I have added to the, renamed
(p.2) tab in an customised appointment form. These two properties
specify additional time before and after a meeting. In the
objApptItem_Write event I have added code to generate/modify two extra
appointment items, 1 before and 1 after the 'Main' appointment item.
All of this works fine. I have even added code for the Explorer events
etc etc.
The problem is when a user opens an existing item, modifies the
contents on before and after controls and then CANCELs the action.
i.e. presses the [X] and then answeres No to "Do you want to save
changes?". This appears to work ok until you open the item again and
look at the contents of the controls. Here I find the values I entered
just before I cancelled.
Looking in the code I see in the colInsp_NewInspector event that the
object objApptItem is assigned the value of the current item. This I
think is part of the problem as this is not set to Nothing, and seems
to be holding the bad values. I can not see where/how/if I should set
this to nothing.
Is this a known problem?
Ideas?
John.