I have a problem with calling my own class trying to change shown results in the selectionDlg. I'm getting the Class called by the Profilemask, get the context, but if I initialize my custom1lookupcmd again using the existing context the dlg-window opens empty. Can someone give me an idea why it works like that?
------
[...]
Private Sub Class_Initialize()
On Error GoTo ClassInitializeError
ICommand_Name = "[...
....]
ICommand_Bitmap = LoadBitmap(App.hInstance, "VBCMD")
Set mOwnCmd = New IMANEXTLib.Custom1LookupCmd
Exit Sub
End Sub
Private Sub ICommand_Update()
mOwnCmd.Update
ICommand_Status = mOrigcmd.Status
End Sub
Private Sub ICommand_Execute()
mOwnCmd.Initialize mContext
mOwnCmd.Execute
End Sub
[...]
Private Sub ICommand_Initialize(ByVal Context As IContextItems)
' Assign the given ContextItems to the Context property.
Set mContext = Context
End Sub
Edited by Ralf on 07/12/05 09:30 AM (server time).