Hi Folks

I am experiencing a problem where CommandMessage property returns the
following error "An invalid argument was passed in the function call" when
a menu/toolbar command is invoked from the "GW.MESSAGE.MAIL" context and
message was an attachment. More details follow at end of this message.

I was wondering if anyone else has encountered the problem and found a

Any suggestions, sympathy or confirmation of the problem would be greatly


Ross McDonell
ross at formark dot com

Programming language is VB6.

Can duplicate problem in 7.0 and FTF: GroupWise 7.0 SP1 Client rev 8

No problem encounted in version 6.5 and 6.0. Code also works fine in 7.0
for any mail messages which haven't been embedded.

Steps to reproduce:
1. Create a new message and drag and drop an existing message into the
attachment box.
2. Send message.
3. Open message from 1. In the attachment box bring up context menu on the
embedded message and select open. Open will show the Existing/Embedded
message in a new window.
4. Click Menu item or toolbar button which invokes your custom GW Command.

5. Within the GWCommand.Execute Method accessing the CommandMessage
property raises "An invalid argument was passed in the function call"
error. ( Can't use property SelectedMessages because it is undefined as