Since our customer upgraded GroupWise from 6.0.4 to 6.5.1 the function
ItemAttachmentGetCurrentIndex() seams not to work anymore. When I debug
to the specific code line I found that no matter what item is selected in
the attachment view of an open email the return value is -1

With GW 6.0.4 this call worked fine:

res = GWDDE.Execute("ItemAttachmentGetCurrentIndex()", index)

Thank you for your help